Package: gs-common
Version: 0.3.13
Severity: important
Hi,
In version 0.3.12, you introduced a change that did this:
diff -bur gs-common-0.3.11/scripts/pdf2ps gs-common-0.3.12/scripts/pdf2ps
--- gs-common-0.3.11/scripts/pdf2ps 2006-10-20 21:50:35.000000000 +0200
+++ gs-common-0.3.12/scripts/pdf2ps 2007-05-22 09:49:31.000000000 +0200
@@ -16,18 +16,24 @@
shift
done
-if [ $# -eq 2 ]
+if [ -t 1 ]
then
+ if [ $# -eq 2 ]
+ then
outfile=$2
-elif [ $# -eq 1 ]
-then
+ elif [ $# -eq 1 ]
+ then
outfile=`basename "$1" \.pdf`.ps
-else
+ else
echo "Usage: `basename $0` [-dASCII85EncodePages=false]
[-dLanguageLevel=1|2|3] input.pdf [output.ps]" 1>&2
exit 1
+ fi
+ OUTFILE="-sOutputFile=$outfile"
+else
+OUTFILE="-sOutputFile=%stdout%"
fi
# Doing an initial 'save' helps keep fonts from being flushed between pages.
# We have to include the options twice because -I only takes effect if it
# appears before other options.
-exec $GS_EXECUTABLE $OPTIONS -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pswrite
"-sOutputFile=$outfile" $OPTIONS -c save pop -f "$1"
+exec $GS_EXECUTABLE $OPTIONS -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pswrite
$OPTIONS -c save pop -f "$1"
------------------------
Why are you checking if fd 1 is a tty ([ -t 1 ]) ?
I don't see the point, and the consequence is that when pdf2ps is executed
without an attached tty, the "output file" argument is ignored, and the
postscript file is outputted to stdout.
This problem causes other packages to fail to build (e.g opensp, #423818), so
it would be great if you could fix this ASAP.
Thank you,
--
| Lucas Nussbaum
| [EMAIL PROTECTED] http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F |
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]