From c07fe54c98eac73c2e517425928ba7eaa0ff4dff Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 20 Sep 2007 18:35:32 +0200 Subject: check in Makefile for *.title files instead of in gipfel2html --- examples/Makefile | 5 ++++- examples/gipfel2html | 8 ++------ 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/Makefile b/examples/Makefile index 19e6f74..f76bc32 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -50,5 +50,8 @@ gipfelweb/gipfel/index.gipfel: $(positions) gipfelweb/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.imgs $(thumbs) gipfel2html images $* > $@ +gipfelweb/hills/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.hills %.title + gipfel2html hills "`cat $*.title`" $* > $@ + gipfelweb/hills/%.html: gipfelweb/slides/%.jpg gipfelweb/gipfel/%.hills - gipfel2html hills $* > $@ + gipfel2html hills $* $* > $@ diff --git a/examples/gipfel2html b/examples/gipfel2html index 35328c3..36720be 100755 --- a/examples/gipfel2html +++ b/examples/gipfel2html @@ -1,7 +1,8 @@ #!/bin/sh MODE="$1" -FILE="$2" +TITLE="$2" +FILE="$3" if [ "$MODE" = "images" ]; then DATAFILE="gipfelweb/gipfel/${FILE}.imgs" @@ -9,11 +10,6 @@ else DATAFILE="gipfelweb/gipfel/${FILE}.hills" fi -TITLE="" -if [ -e "${FILE}.title" ]; then - TITLE=`cat ${FILE}.title` -fi - cat << EOF -- cgit v1.2.3