summaryrefslogtreecommitdiff
path: root/meetup
diff options
context:
space:
mode:
authorJürgen Schweizer <oe6jue@oevsv.at>2019-06-03 17:09:49 +0200
committerJürgen Schweizer <oe6jue@oevsv.at>2019-06-03 17:09:49 +0200
commit5baaa9d62e585bb5c65394c38865845dc9f6039a (patch)
tree48de40263f64bff96fba5eaf63abc69320674cf3 /meetup
parentcc0e7dba46fd83b3cabe1cdffdcb807c3e3c8986 (diff)
script add alternate time
Diffstat (limited to 'meetup')
-rwxr-xr-xmeetup/gen_dates.sh5
1 files changed, 5 insertions, 0 deletions
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&nbsp;Treffen"
+ BEGINTIME="21"
else
MTYP="allegemeines&nbsp;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"