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

Fixed some smaller bugs and slightly improved formatting of commit entries.

- scripts/schhist2web: when starting, remove html_* and pdf_*
- scripts/schps2pdf: corrected quoting of sheet title derived from file
  name (produced many error messages and caused garbled titles in the
  overall schematics)
- scripts/schhist2web: indent date in commit entry such that it's flush
  with the author
This commit is contained in:
Werner Almesberger 2010-08-30 20:16:34 -03:00
parent 78f6cfbfda
commit a0cdb1e365
2 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ commit_entry()
EOF
echo "<PRE>"
( cd "$dir" && git show \
--pretty=format:"%aN <%aE>%n%ad, %ar%n%n %s" \
--pretty=format:"%aN <%aE>%n %ad, %ar%n%n %s" \
--quiet $next; ) |
sed 's/&/&amp;/g;s/</\&lt;/g;s/>/\&gt;/g' |
if [ -z "$SCHHIST_COMMIT_TEMPLATE" ]; then
@ -171,7 +171,7 @@ PATH=`dirname "$0"`:"$PATH"
first=`gitenealogy "$dir" "$sch" | sed '$s/ .*//p;d'`
schname=`gitenealogy "$dir" "$sch" | sed '$s/^.* //p;d'`
rm -rf "$out/diff_*" "$out/thumb_*" "$out/names"
rm -rf "$out/diff_*" "$out/thumb_*" "$out/html_*" "$out/pdf_*" "$out/names"
$no_cache && rm -rf "$cache"
mkdir -p "$out/names"
mkdir -p "$cache"

View File

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