From 5baaa9d62e585bb5c65394c38865845dc9f6039a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Schweizer?= Date: Mon, 3 Jun 2019 17:09:49 +0200 Subject: script add alternate time --- meetup/gen_dates.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meetup/gen_dates.sh b/meetup/gen_dates.sh index 1d3268a..1b4d235 100755 --- a/meetup/gen_dates.sh +++ b/meetup/gen_dates.sh @@ -12,6 +12,7 @@ LIMIT=3 NEXT_FILE="next.html" AFTER_FILE="after.html" NEXTTYPE_FILE="nexttype.html" +NEXT_BEGINTIME_FILE="nextbegin.html" DOW=`date +"%u"` if [ $DOW -eq 1 ]; then @@ -31,8 +32,10 @@ while true; do if [ $DOM -le 7 ] || ([ $DOM -ge 15 ] && [ $DOM -le 21 ]); then if [ $DOM -le 7 ]; then MTYP="Tech/Core Treffen" + BEGINTIME="21" else MTYP="allegemeines Funkfeuertreffen" + BEGINTIME="20" fi if [ -n "$DEBUG" ]; then echo " -> ok $MTYP"; fi MEETUPS="$MEETUPS $TS" @@ -60,6 +63,7 @@ FUTUREMTYP=$@ date --date="@$NEXT" +"%d.%m.%Y" > "$NEXT_FILE.new" echo $NEXTMTYP > "$NEXTTYPE_FILE.new" +echo $BEGINTIME > "$NEXT_BEGINTIME_FILE.new" CNT=0 echo "" >> "$AFTER_FILE.new" mv "$NEXT_FILE.new" "$NEXT_FILE" +mv "$NEXT_BEGINTIME_FILE.new" "$NEXT_BEGINTIME_FILE" mv "$NEXTTYPE_FILE.new" "$NEXTTYPE_FILE" mv "$AFTER_FILE.new" "$AFTER_FILE" -- cgit v1.2.1