psutils/psutils-p17-misc.patch
cvsdist c07cef03c8 auto-import changelog data from psutils-1.17-10.src.rpm
Fri Dec 08 2000 Tim Powers <timp@redhat.com>
- built for dist-7.1
Mon Jul 24 2000 Prospector <prospector@redhat.com>
- rebuilt
Mon Jul 10 2000 Tim Powers <timp@redhat.com>
- rebuilt
Mon Jul 03 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Fri May 26 2000 Tim Powers <timp@redhat.com>
- man pages in /usr/share/man (FHS compliant location)
- grabbed spec from contrib
- initial build for Powertools
Wed May 12 1999 Peter Soos <sp@osb.hu>
- Corrected the file and directory attributes to rebuild the package under
    RedHat Linux 6.0
Fri Dec 25 1998 Peter Soos <sp@osb.hu>
- Corrected the file and directory attributes
Tue Jun 23 1998 Peter Soos <sp@osb.hu>
- Using %attr for ability to rebuild the package as an ordinary user.
Wed Jun 04 1997 Timo Karjalainen <timok@iki.fi>
- Reverted back to un-gzipped man-pages (Redhat style)
- Added patch to compile everything cleanly
- Some minor changes to specfile
Thu Mar 27 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- new version: Patchlevel 17 had some minor bugfixes and improvements
- Trailer information now put before %EOF comments if no %Trailer
- psselect can now add blank pages.
- Piped input works in Linux
- spec file rewrited for using Buildroot,
- man pages gziped.
2004-09-09 10:49:02 +00:00

61 lines
2.0 KiB
Diff

--- psutils/epsffit.c.orig Wed Mar 12 00:52:52 1997
+++ psutils/epsffit.c Wed Jun 4 11:02:36 1997
@@ -42,12 +42,12 @@
void 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");
--- psutils/psnup.c.orig Wed Mar 12 00:53:02 1997
+++ psutils/psnup.c Wed Jun 4 11:02:36 1997
@@ -68,10 +68,10 @@
void 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 */