From c712d598ea39dc4f90a733dc06c44617eb30bcbb Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 10 Aug 2007 17:56:37 +0200 Subject: implement automatic gipfelweb generation --- examples/gipfel2html | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 examples/gipfel2html (limited to 'examples/gipfel2html') diff --git a/examples/gipfel2html b/examples/gipfel2html new file mode 100755 index 0000000..1016b94 --- /dev/null +++ b/examples/gipfel2html @@ -0,0 +1,47 @@ +#!/bin/sh + +cat << EOF + + +" +echo "" +echo "
" + +i=0 +grep -v "^#" gipfelweb/gipfel/${1}.gipf | \ +while read name height x y dist flags dummy; do + if [ "${flags}" = "HIDDEN" ]; then + continue + fi + + echo "
  • ${name} (${height}m)
  • " + + i=$((${i} + 1)) +done + +cat << EOF + +
    + + +EOF -- cgit v1.2.3