1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-22 23:22:25 +02:00

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
This commit is contained in:
Werner Almesberger 2010-08-31 03:04:46 -03:00
parent 80c6f3e75f
commit 541dd04a77

View File

@ -50,10 +50,10 @@ done
in=${1:--}
shift
eval gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=\""$out\"" -f \
`export i=1; for n in "$in" "$@"; do \
eval gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=\"$out\" -f \
`i=1; for n in "$in" "$@"; do \
i=\`expr $i + 1\`;
echo "<(sheet=\"\`basename \"$n\" .ps\`\";
set x $titles; i=\`expr $i + 1\`; eval t='\\$$i';
set x $titles; eval t='\\${$i}';
$toc && echo '[ /Title ('\"\\${t:-\\${sheet#$prefix}}\"') /OUT pdfmark';
cat \"$n\";)"; done`