summaryrefslogtreecommitdiff
path: root/bin/cal-render.sh
blob: 9203f7e83717ba05dd55848acc06af15c045812f (plain)
  1. #!/bin/sh
  2. # Depends: ical2html
  3. set -eu
  4. OUTDIR=events
  5. mkdir --parents "$OUTDIR/study" "$OUTDIR/moodle"
  6. icalmerge _CALENDARS/study/*.ics "$OUTDIR"/study/study.ics
  7. icalmerge _CALENDARS/moodle/*.ics "$OUTDIR"/moodle/moodle.ics
  8. ical2html --monday --title "RUC HumTek-23 Study" 20240201 P140D "$OUTDIR"/study/study.ics > "$OUTDIR"/study/index.html
  9. ical2html --monday --title "RUC HumTek-23 Moodle" 20240201 P140D "$OUTDIR"/moodle/moodle.ics > "$OUTDIR"/moodle/index.html