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

Commit entries now show date date, not the hash.

- scripts/schps2pdf: changed commit entry format from commit hash and author
  to author and date
- scripts/schps2pdf: reordered sanitizing of commit entry to avoid having
  to special-case the link
This commit is contained in:
Werner Almesberger 2010-08-30 04:46:19 -03:00
parent ab89a00f5c
commit 6bef1d9458

View File

@ -64,14 +64,16 @@ commit_entry()
<TABLE bgcolor="$SEP_COLOR" cellspacing=0 width="100%"><TR><TD></TABLE>
EOF
echo "<PRE>"
( cd "$dir" && git show --pretty=short --quiet $next; ) |
( cd "$dir" && git show \
--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
cat
else
url=`echo "$SCHHIST_COMMIT_TEMPLATE" | sed "s/{}/$next/g"`
sed "s|^commit |<A href=\"$url\">commit</a> |"
fi |
sed '/^<.*>commit</n;s/&/&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'
sed "1s|^|<A href=\"$url\"><B>\&gt;\&gt;\&gt;</B></a> |"
fi
echo "</PRE>"
}