mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-26 07:02:48 +02:00
schhist2web: better technical and visual quality of HTML output.
- scripts/schhist2web: don't "exit 1" on success (duh ?) - scripts/schhist2web: use proper HTML intro with DOCTYPE - scripts/schhist2web: add date tag at the end - scripts/schhist2web: define all Web colors at the beginning - scripts/schhist2web: assign background different from the rest to file names - scripts/schhist2web: translate <, >, and & meta-characters in "git log" output
This commit is contained in:
parent
099b62649b
commit
5761b6e650
@ -2,6 +2,9 @@
|
||||
|
||||
OUTDIR=_out
|
||||
THUMB_OPTS="-w 3 -d 60 -c 0.5,0.5,0.5 -n 1,1,0"
|
||||
BG_COLOR="f0f0ff"
|
||||
FNAME_COLOR="#b0f0ff"
|
||||
SEP_COLOR="#000000"
|
||||
|
||||
|
||||
shrink()
|
||||
@ -127,10 +130,11 @@ done
|
||||
|
||||
index="$out/index.html"
|
||||
cat <<EOF >"$index"
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<HTML>
|
||||
<BODY>
|
||||
<TABLE bgcolor="#f0f0ff" callpadding=1>
|
||||
<TR>
|
||||
<TABLE bgcolor="$BG_COLOR" callpadding=1>
|
||||
<TR bgcolor="$FNAME_COLOR">
|
||||
EOF
|
||||
for m in `ls -1 "$out/names"`; do
|
||||
echo "<TD><B>$m</B>" >>"$index"
|
||||
@ -178,16 +182,23 @@ for n in `git rev-list $first..HEAD~1` $first; do
|
||||
(
|
||||
cat <<EOF
|
||||
$s<TD valign="middle">
|
||||
<TABLE bgcolor="#000000" cellspacing=0 width="100%"><TR><TD></TABLE>
|
||||
<TABLE bgcolor="$SEP_COLOR" cellspacing=0 width="100%"><TR><TD></TABLE>
|
||||
EOF
|
||||
mkdir -p "$out/diff_$next" "$out/thumb_$next"
|
||||
echo "<PRE>"
|
||||
git log --pretty=short $n..$next
|
||||
git log --pretty=short $n..$next |
|
||||
sed 's/&/&/g;s/</\</g;s/>/\>/g'
|
||||
echo "</PRE>"
|
||||
) >>"$index"
|
||||
fi
|
||||
next=$n
|
||||
done
|
||||
|
||||
echo "</TABLE>" >>"$index"
|
||||
cat <<EOF >>"$index"
|
||||
</TABLE>
|
||||
<HR>
|
||||
`date -u '+%F %X'` UTC
|
||||
</BODY>
|
||||
</HTML>
|
||||
EOF
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user