summaryrefslogtreecommitdiff
path: root/print/ghostscript7/files/patch-lib:sysvlp.sh.CAN-2004-0967
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-04-29 20:12:16 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-04-29 20:12:16 +0000
commit045633a1b8b9a93da39276c44d8313ec66a07545 (patch)
treeb668622bec03cea02602798988a5ed72533143b2 /print/ghostscript7/files/patch-lib:sysvlp.sh.CAN-2004-0967
parentUpdate to 3.6.3 (diff)
Resurrect print/ghostscript7*. Ghostscript 7.x is incompatible with 8.x
and 9.x in terms of CJK character support and they are still in demand. While I am here, the following changes have been added: - Add LICENSE. - Use OPTIONS_DEFINE for ghostscript drivers. - Add MAKE_JOBS_SAFE=yes. Discussed with: bapt
Notes
Notes: svn path=/head/; revision=316845
Diffstat (limited to 'print/ghostscript7/files/patch-lib:sysvlp.sh.CAN-2004-0967')
-rw-r--r--print/ghostscript7/files/patch-lib:sysvlp.sh.CAN-2004-096729
1 files changed, 29 insertions, 0 deletions
diff --git a/print/ghostscript7/files/patch-lib:sysvlp.sh.CAN-2004-0967 b/print/ghostscript7/files/patch-lib:sysvlp.sh.CAN-2004-0967
new file mode 100644
index 000000000000..314d5d0bbe84
--- /dev/null
+++ b/print/ghostscript7/files/patch-lib:sysvlp.sh.CAN-2004-0967
@@ -0,0 +1,29 @@
+--- lib/sysvlp.sh.orig Thu Mar 9 17:40:40 2000
++++ lib/sysvlp.sh Mon Nov 28 02:22:42 2005
+@@ -27,20 +27,23 @@
+ # Brother HL-4: switch to HP laserjet II+ emulation
+ # echo "\033\015H\c"
+
++TEMPDIR=`mktemp -td sysvlp.XXXXXX` || exit 1
++
+ i=1
+ while [ $i -le $copies ]
+ do
+ for file in $files
+ do
+ $GSHOME/gs \
+- -sOUTPUTFILE=/tmp/psp$$.%02d \
++ -sOUTPUTFILE=$TEMPDIR/psp$$.%02d \
+ -sDEVICE=$DEVICE \
+ $EHANDLER $file \
+ < /dev/null >> /usr/tmp/ps_log 2>&1
+
+- cat /tmp/psp$$.* 2>> /usr/tmp/ps_log
+- rm -f /tmp/psp$$.*
++ cat $TEMPDIR/psp$$.* 2>> /usr/tmp/ps_log
++ rm -f $TEMPDIR/psp$$.*
+ done
+ i=`expr $i + 1`
+ done
++rmdir $TEMPDIR
+ exit 0