diff options
Diffstat (limited to 'meetup/gen_dates.sh')
-rwxr-xr-x | meetup/gen_dates.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meetup/gen_dates.sh b/meetup/gen_dates.sh index 731b6fe..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="allgemeines Funkfeuertreffen" + 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 "<ul>" > "$AFTER_FILE.new" for meetup in $FUTURE; do @@ -73,6 +77,7 @@ for meetup in $FUTURE; do done echo "</ul>" >> "$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" |