summaryrefslogtreecommitdiff
path: root/meetup/gen_dates.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meetup/gen_dates.sh')
-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 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 "<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