From 5f69ebe6345bf4ee37d0e29fc71f6aa7d81f9a46 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 11 Aug 2007 17:55:55 +0200 Subject: adjus web style --- examples/gipfel2html | 55 ++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 6 deletions(-) (limited to 'examples/gipfel2html') diff --git a/examples/gipfel2html b/examples/gipfel2html index 5b0e6ea..9fe3a1c 100755 --- a/examples/gipfel2html +++ b/examples/gipfel2html @@ -1,10 +1,15 @@ #!/bin/sh +TITLE="" +if [ -e "$1.title" ]; then + TITLE=`cat $1.title` +fi + cat << EOF " -echo "" -echo "
" +cat << EOF + + + +
+
+EOF + +echo "

$TITLE

" + +cat << EOF + + +
+ + +
+
+EOF + +echo "" i=0 grep -v "^#" gipfelweb/gipfel/${1}.gipf | \ @@ -38,7 +71,12 @@ while read name height x y dist flags dummy; do continue fi - echo "
  • ${name} (${height}m)
  • " + THUMB_TITLE="${name%.jpg}" + if [ -e "${name%.jpg}.title" ]; then + THUMB_TITLE=`cat ${name%.jpg}.title` + fi + + echo "
  • ${THUMB_TITLE} (${height}m)
  • " i=$((${i} + 1)) done @@ -46,6 +84,11 @@ done cat << EOF
    +
    +
    +copyright © 2007 Johannes Hofmann - + EOF -- cgit v1.2.3