summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürgen Schweizer <oe6jue@oevsv.at>2019-02-21 08:49:12 +0100
committerJürgen Schweizer <oe6jue@oevsv.at>2019-02-21 08:49:12 +0100
commitbd6aeaaacc93690edd48b71d2931f7bf4148fbe3 (patch)
tree2fe7e224f95422cefd947275b8ad7818fa79f748
parent05a786e3d58e0cef3f8b764866ef6795719f68f2 (diff)
generate net meetup-type
-rwxr-xr-xmeetup/gen_dates.sh9
1 files changed, 6 insertions, 3 deletions
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&nbsp;Treffen"
else
- MTYP="gem&uuml;tliches"
+ MTYP="allegemeines&nbsp;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 "<ul>" > "$AFTER_FILE.new"
for meetup in $FUTURE; do
@@ -66,11 +68,12 @@ for meetup in $FUTURE; do
shift
FUTUREMTYP=$@
- echo " <li>"`date --date="@$meetup" +"%d.%m.%Y"`": $mtext Treffen </li>" >> "$AFTER_FILE.new"
+ echo " <li>"`date --date="@$meetup" +"%d.%m.%Y"`": $mtext</li>" >> "$AFTER_FILE.new"
CNT=$((CNT + 1))
done
echo "</ul>" >> "$AFTER_FILE.new"
mv "$NEXT_FILE.new" "$NEXT_FILE"
+mv "$NEXTTYPE_FILE.new" "$NEXTTYPE_FILE"
mv "$AFTER_FILE.new" "$AFTER_FILE"
exit 0