1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-01 20:39:21 +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 EOF
echo "<PRE>" echo "<PRE>"
( cd "$dir" && git show \ ( 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; ) | --quiet $next; ) |
sed 's/&/&amp;/g;s/</\&lt;/g;s/>/\&gt;/g' | sed 's/&/&amp;/g;s/</\&lt;/g;s/>/\&gt;/g' |
if [ -z "$SCHHIST_COMMIT_TEMPLATE" ]; then if [ -z "$SCHHIST_COMMIT_TEMPLATE" ]; then
@ -171,7 +171,7 @@ PATH=`dirname "$0"`:"$PATH"
first=`gitenealogy "$dir" "$sch" | sed '$s/ .*//p;d'` first=`gitenealogy "$dir" "$sch" | sed '$s/ .*//p;d'`
schname=`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" $no_cache && rm -rf "$cache"
mkdir -p "$out/names" mkdir -p "$out/names"
mkdir -p "$cache" mkdir -p "$cache"

View File

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