--- trunk/ps2pdf-extended/ps2pdf-extended.sh 2005/04/27 23:03:11 13 +++ trunk/ps2pdf-extended/ps2pdf-extended.sh 2005/04/27 23:10:04 14 @@ -2,10 +2,11 @@ # -i input1,input2,.... -o output.pdf +# needs ghostscript-esp-7 usage() { echo - echo "converts one or more postscript files to pdf" + echo "Converts one or more postscript files to pdf" echo echo "Usage:" echo " $(basename $0) input1,input2,... output" @@ -23,6 +24,10 @@ OUTPUT_FILE="$2" TEMP="/var/tmp/ps2pdf-ext-$$.ps" +echo +echo "ps2pdf-extended, Niels Rogalla " +echo + #create a empty temp file :> ${TEMP} @@ -30,12 +35,16 @@ IFS="," for i in ${INPUT_FILES} do - echo "Processing ${i} ..." + echo " Processing ${i} ..." cat ${i} >> ${TEMP} done +IFS="${OLD_IFS}" -echo -n "Creating PDF '${OUTPUT_FILE}' ..." +echo -n " Creating PDF '${OUTPUT_FILE}' ..." ps2pdf ${TEMP} ${OUTPUT_FILE} + +# remove temp file +[ -f ${TEMP} ] && rm ${TEMP} + echo "done" echo -