Date:2010-08-31 08:04:46 (9 years 20 days ago)
Author:Werner Almesberger
Commit:541dd04a7735bfd1602d1428626ed001d612ff9a
Message:Debugged and cleaned up schps2pdf.

- scripts/schps2pdf: don't need to export i (reported by Wolfgang Spraul)
- scripts/schps2pdf: removed dysfunctional (and incorrect, if it had
worked) second increment of i
- scripts/schps2pdf: simplified quoting of the -sOutputFile argument
- scripts/schps2pdf: \$$i needs curly braces to work for more than nine
files
Files: scripts/schps2pdf (1 diff)

Change Details

scripts/schps2pdf
5050in=${1:--}
5151shift
5252
53eval gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=\""$out\"" -f \
54  `export i=1; for n in "$in" "$@"; do \
53eval gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=\"$out\" -f \
54  `i=1; for n in "$in" "$@"; do \
5555    i=\`expr $i + 1\`;
5656    echo "<(sheet=\"\`basename \"$n\" .ps\`\";
57    set x $titles; i=\`expr $i + 1\`; eval t='\\$$i';
57    set x $titles; eval t='\\${$i}';
5858      $toc && echo '[ /Title ('\"\\${t:-\\${sheet#$prefix}}\"') /OUT pdfmark';
5959    cat \"$n\";)"; done`

Archive Download the corresponding diff file



interactive