From bd6aeaaacc93690edd48b71d2931f7bf4148fbe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Schweizer?= Date: Thu, 21 Feb 2019 08:49:12 +0100 Subject: generate net meetup-type --- meetup/gen_dates.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'meetup') diff --git a/meetup/gen_dates.sh b/meetup/gen_dates.sh index 62360a2..1d3268a 100755 --- a/meetup/gen_dates.sh +++ b/meetup/gen_dates.sh @@ -11,6 +11,7 @@ LIMIT=3 # where to put the output files? NEXT_FILE="next.html" AFTER_FILE="after.html" +NEXTTYPE_FILE="nexttype.html" DOW=`date +"%u"` if [ $DOW -eq 1 ]; then @@ -29,9 +30,9 @@ while true; do if [ $DOM -le 7 ] || ([ $DOM -ge 15 ] && [ $DOM -le 21 ]); then if [ $DOM -le 7 ]; then - MTYP="Tech/Core" + MTYP="Tech/Core Treffen" else - MTYP="gemütliches" + MTYP="allegemeines Funkfeuertreffen" fi if [ -n "$DEBUG" ]; then echo " -> ok $MTYP"; fi MEETUPS="$MEETUPS $TS" @@ -58,6 +59,7 @@ shift FUTUREMTYP=$@ date --date="@$NEXT" +"%d.%m.%Y" > "$NEXT_FILE.new" +echo $NEXTMTYP > "$NEXTTYPE_FILE.new" CNT=0 echo "" >> "$AFTER_FILE.new" mv "$NEXT_FILE.new" "$NEXT_FILE" +mv "$NEXTTYPE_FILE.new" "$NEXTTYPE_FILE" mv "$AFTER_FILE.new" "$AFTER_FILE" exit 0 -- cgit v1.2.1