Date:2010-08-31 01:16:34 (13 years 6 months ago)
Author:Werner Almesberger
Commit:a0cdb1e3653c4b55aa5251970399d40ffd736c72
Message: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
Files: scripts/schhist2web (2 diffs)
scripts/schps2pdf (1 diff)

Change Details

scripts/schhist2web
6565EOF
6666    echo "<PRE>"
6767    ( cd "$dir" && git show \
68        --pretty=format:"%aN <%aE>%n%ad, %ar%n%n %s" \
68        --pretty=format:"%aN <%aE>%n %ad, %ar%n%n %s" \
6969    --quiet $next; ) |
7070      sed 's/&/&amp;/g;s/</\&lt;/g;s/>/\&gt;/g' |
7171      if [ -z "$SCHHIST_COMMIT_TEMPLATE" ]; then
...... 
171171first=`gitenealogy "$dir" "$sch" | sed '$s/ .*//p;d'`
172172schname=`gitenealogy "$dir" "$sch" | sed '$s/^.* //p;d'`
173173
174rm -rf "$out/diff_*" "$out/thumb_*" "$out/names"
174rm -rf "$out/diff_*" "$out/thumb_*" "$out/html_*" "$out/pdf_*" "$out/names"
175175$no_cache && rm -rf "$cache"
176176mkdir -p "$out/names"
177177mkdir -p "$cache"
scripts/schps2pdf
5353eval gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=\""$out\"" -f \
5454  `export i=1; for n in "$in" "$@"; do \
5555    i=\`expr $i + 1\`;
56    echo "<(sheet=\`basename \"$n\" .ps\`;
56    echo "<(sheet=\"\`basename \"$n\" .ps\`\";
5757    set x $titles; i=\`expr $i + 1\`; eval t='\\$$i';
5858      $toc && echo '[ /Title ('\"\\${t:-\\${sheet#$prefix}}\"') /OUT pdfmark';
5959    cat \"$n\";)"; done`

Archive Download the corresponding diff file



interactive