From 5761b6e650547ae99574d54b210e5aebe875d8dd Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 27 Aug 2010 13:07:15 -0300 Subject: [PATCH] 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 --- scripts/schhist2web | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/scripts/schhist2web b/scripts/schhist2web index 0bc7789..5347c52 100755 --- a/scripts/schhist2web +++ b/scripts/schhist2web @@ -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 <"$index" + - - +
+ EOF for m in `ls -1 "$out/names"`; do echo "
$m" >>"$index" @@ -178,16 +182,23 @@ for n in `git rev-list $first..HEAD~1` $first; do ( cat < -
+
EOF mkdir -p "$out/diff_$next" "$out/thumb_$next" echo "
"
-	    git log --pretty=short $n..$next
+	    git log --pretty=short $n..$next |
+	      sed 's/&/&/g;s//\>/g'
 	    echo "
" ) >>"$index" fi next=$n done -echo "
" >>"$index" +cat <>"$index" + +
+`date -u '+%F %X'` UTC + + +EOF exit 1