Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:ARM:Staging
psutils
psutils-p17.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File psutils-p17.dif of Package psutils
--- .pkgextract +++ .pkgextract @@ -0,0 +1,2 @@ +patch -p1 -s --suffix=".flip" < ../psutils-flip.dif +patch -p0 -s --suffix=".sec" < ../psutils-pserror.dif --- Makefile.unix +++ Makefile.unix @@ -25,10 +25,10 @@ OS = UNIX -BINDIR = /usr/local/bin +BINDIR = /usr/bin SCRIPTDIR = $(BINDIR) -INCLUDEDIR = /usr/local/share/psutils -PERL = /usr/local/bin/perl +INCLUDEDIR = /usr/share/psutils +PERL = /usr/bin/perl BINMODE = 0755 MANMODE = 0644 @@ -36,10 +36,11 @@ INSTALL = install -c -m $(BINMODE) INSTALLMAN = install -c -m $(MANMODE) MANEXT = 1 -MANDIR = /usr/local/share/man/man$(MANEXT) +MANDIR = /usr/share/man/man$(MANEXT) CC = gcc -CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX -O -Wall +CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX $(RPM_OPT_FLAGS) -pipe -Wall +CCFLAGS = $(CFLAGS) BIN = psbook psselect pstops epsffit psnup \ psresize --- epsffit.c +++ epsffit.c @@ -39,15 +39,15 @@ exit(1); } -void main(int argc, char **argv) +int main(int argc, char **argv) { int bbfound = 0; /* %%BoundingBox: found */ - int urx, ury, llx, lly; + int urx = 0, ury = 0, llx = 0, lly = 0; int furx, fury, fllx, flly; int showpage = 0, centre = 0, rotate = 0, aspect = 0, maximise = 0; char buf[BUFSIZ]; - FILE *input; - FILE *output; + FILE *input = stdin; + FILE *output = stdout; program = *argv++; argc--; @@ -163,9 +163,14 @@ yoffset -= lly * yscale; } fputs("%%EndComments\n", output); - if (showpage) - fputs("save /showpage{}def /copypage{}def /erasepage{}def\n", output); - else + if (showpage) { + fputs("/startEpsffit {\n", output); + fputs(" /EpsffitSave {save} def\n", output); + fputs(" userdict 200 dict begin\n", output); + fputs(" /showpage{}def /copypage{}def /erasepage{}def\n", output); + fputs("}def\n", output); + fputs("startEpsffit\n", output); + } else fputs("%%BeginProcSet: epsffit 1 0\n", output); fputs("gsave\n", output); fprintf(output, "%.3f %.3f translate\n", xoffset, yoffset); @@ -181,7 +186,7 @@ if (bbfound) { fputs("grestore\n", output); if (showpage) - fputs("restore showpage\n", output); /* just in case */ + fputs("end EpsffitSave restore showpage\n", output); /* just in case */ } else message(FATAL, "no %%%%BoundingBox:\n"); --- getafm.sh +++ getafm.sh @@ -1,7 +1,7 @@ #!/bin/sh if [ $# -ne 1 ]; then - echo "usage: $0 font-name | gsnd - >font-name.afm" >&2 + echo "usage: $0 font-name | gsnd -q - >font-name.afm" >&2 exit 1 fi @@ -66,8 +66,9 @@ (isFixedPitch)(IsFixedPitch) prany (UnderlinePosition)dup prany (UnderlineThickness)dup prany - (Version)(version) prany + (version)(Version) prany (Notice)dup prany + (Copyright)dup prany pop } { --- psbook.c +++ psbook.c @@ -32,7 +32,7 @@ } -void main(int argc, char *argv[]) +int main(int argc, char *argv[]) { int signature = 0; int currentpg, maxpage; --- psmerge.man +++ psmerge.man @@ -24,6 +24,26 @@ .I Psmerge will merge multiple files concatenated into a single file as if they were in separate files. +.SH BUGS +.I psmerge +is for a very specific case; it does not merge files in the general case. +.br +For all those cases which can not be handled by +.I psmerge +the program +.I gs +(known as ghostscript) may help: + +.sp 1 +.in +1c +.nf + gs -dNOPAUSE -sDEVICE=pswrite -sOutputFile=out.ps \\ + file1.ps file2.ps ... -c quit +.fi +.in -1c +.sp 1 + +This is rather slow and generates bigger output files. .SH AUTHOR Copyright (C) Angus J. C. Duggan 1991-1995 .SH "SEE ALSO" @@ -31,6 +51,3 @@ .SH TRADEMARKS .B PostScript is a trademark of Adobe Systems Incorporated. -.SH BUGS -.I psmerge -is for a very specific case; it does not merge files in the general case. --- psnup.c +++ psnup.c @@ -66,12 +66,12 @@ return (0); } -void main(int argc, char *argv[]) +int main(int argc, char *argv[]) { - int horiz, vert, rotate, column, flip, leftright, topbottom; + int horiz = 0, vert = 0, rotate = 0, column, flip, leftright, topbottom; int nup = 1; double draw = 0; /* draw page borders */ - double scale; /* page scale */ + double scale = 0; /* page scale */ double uscale = 0; /* user supplied scale */ double ppwid, pphgt; /* paper dimensions */ double margin, border; /* paper & page margins */ --- psresize.c +++ psresize.c @@ -46,7 +46,7 @@ #define MIN(x,y) ((x) > (y) ? (y) : (x)) #define MAX(x,y) ((x) > (y) ? (x) : (y)) -void main(int argc, char *argv[]) +int main(int argc, char *argv[]) { double scale, rscale; /* page scale */ double waste, rwaste; /* amount wasted */ --- psselect.c +++ psselect.c @@ -52,6 +52,9 @@ { int first=0; int sign; + + if(!str) return NULL; + sign = (*str == '_' && ++str) ? -1 : 1; if (isdigit(*str)) { first = sign*atoi(str); @@ -91,7 +94,7 @@ } -void main(int argc, char *argv[]) +int main(int argc, char *argv[]) { int currentpg, maxpage = 0; int even = 0, odd = 0, reverse = 0; --- psspec.c +++ psspec.c @@ -12,6 +12,9 @@ #include <string.h> +/* #define SHOWPAGE_LOAD 1 */ +#undef SHOWPAGE_LOAD + double width = -1; double height = -1; --- pstops.c +++ pstops.c @@ -120,7 +120,7 @@ return (head); } -void main(int argc, char *argv[]) +int main(int argc, char *argv[]) { PageSpec *specs = NULL; int nobinding = 0; --- pstops.man +++ pstops.man @@ -86,7 +86,7 @@ If page \fIspec\fRs are separated by .B \+ the pages will be merged into one page; if they are separated by -.B \, +.B , they will be on separate pages. If there is only one page specification, with .I pageno --- psutil.c +++ psutil.c @@ -44,14 +44,45 @@ /* list of paper sizes supported */ static Paper papersizes[] = { - { "a3", 842, 1191 }, /* 29.7cm * 42cm */ - { "a4", 595, 842 }, /* 21cm * 29.7cm */ - { "a5", 421, 595 }, /* 14.85cm * 21cm */ - { "b5", 516, 729 }, /* 18.2cm * 25.72cm */ - { "A3", 842, 1191 }, /* 29.7cm * 42cm */ - { "A4", 595, 842 }, /* 21cm * 29.7cm */ - { "A5", 421, 595 }, /* 14.85cm * 21cm */ - { "B5", 516, 729 }, /* 18.2cm * 25.72cm */ + { "a0", 2384, 3370 }, + { "a1", 1684, 2384 }, + { "a2", 1191, 1684 }, + { "a3", 842, 1191 }, /* 29.7cm * 42cm */ + { "a4", 595, 842 }, /* 21cm * 29.7cm */ + { "a5", 421, 595 }, /* 14.85cm * 21cm */ + { "a6", 297, 420 }, + { "a7", 210, 297 }, + { "a8", 148, 210 }, + { "a9", 105, 148 }, + { "a10", 73, 105 }, + { "isob0", 2835, 4008 }, + { "b0", 2835, 4008 }, + { "isob1", 2004, 2835 }, + { "b1", 2004, 2835 }, + { "isob2", 1417, 2004 }, + { "b2", 1417, 2004 }, + { "isob3", 1001, 1417 }, + { "b3", 1001, 1417 }, + { "isob4", 709, 1001 }, + { "b4", 709, 1001 }, + { "isob5", 499, 709 }, + { "b5", 499, 709 }, + { "isob6", 354, 499 }, + { "b6", 354, 499 }, + { "jisb0", 2920, 4127 }, + { "jisb1", 2064, 2920 }, + { "jisb2", 1460, 2064 }, + { "jisb3", 1032, 1460 }, + { "jisb4", 729, 1032 }, + { "jisb5", 516, 729 }, + { "jisb6", 363, 516 }, + { "c0", 2599, 3677 }, + { "c1", 1837, 2599 }, + { "c2", 1298, 1837 }, + { "c3", 918, 1298 }, + { "c4", 649, 918 }, + { "c5", 459, 649 }, + { "c6", 323, 459 }, { "letter", 612, 792 }, /* 8.5in * 11in */ { "legal", 612, 1008 }, /* 8.5in * 14in */ { "ledger", 1224, 792 }, /* 17in * 11in */ @@ -61,6 +92,14 @@ { "folio", 612, 936 }, /* 8.5in * 13in */ { "quarto", 610, 780 }, /* 8.5in * 10.83in */ { "10x14", 720, 1008 }, /* 10in * 14in */ + { "archE", 2592, 3456 }, + { "archD", 1728, 2592 }, + { "archC", 1296, 1728 }, + { "archB", 864, 1296 }, + { "archA", 648, 864 }, + { "flsa", 612, 936 }, /* U.S. foolscap */ + { "flse", 612, 936 }, /* European foolscap */ + { "halfletter", 396, 612 }, { NULL, 0, 0 } }; @@ -69,7 +108,7 @@ { Paper *pp; for (pp = papersizes; PaperName(pp); pp++) { - if (strcmp(PaperName(pp), name) == 0) { + if (strncasecmp(PaperName(pp), name, strlen(PaperName(pp))) == 0) { return pp; } } @@ -88,16 +127,15 @@ #if defined(WINNT) struct _stat fs ; #else - long fpos; + struct stat fs; #endif #if defined(WINNT) if (_fstat(fileno(fp), &fs) == 0 && (fs.st_mode&_S_IFREG) != 0) return (fp); #else - if ((fpos = ftell(fp)) >= 0) - if (!fseek(fp, 0L, SEEK_END) && !fseek(fp, fpos, SEEK_SET)) - return (fp); + if (fstat(fileno(fp), &fs) == 0 && S_ISREG(fs.st_mode)) + return (fp); #endif #if defined(MSDOS)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor