#!/bin/sh
# Depends: ical2html
set -eu
OUTDIR=events
mkdir --parents "$OUTDIR/study" "$OUTDIR/moodle"
icalmerge _CALENDARS/study/*.ics "$OUTDIR"/study/study.ics
icalmerge _CALENDARS/moodle/*.ics "$OUTDIR"/moodle/moodle.ics
ical2html --monday --title "RUC HumTek-23 Study" 20240201 P140D "$OUTDIR"/study/study.ics > "$OUTDIR"/study/index.html
ical2html --monday --title "RUC HumTek-23 Moodle" 20240201 P140D "$OUTDIR"/moodle/moodle.ics > "$OUTDIR"/moodle/index.html