#!/bin/sh # Depends: ical2html set -eu STARTDATE=$(date --date "1 week ago" +%Y%m%d) OUTDIR=events mkdir --parents "$OUTDIR/superteam" icalmerge ~/.calendars/_ruc_thoughtroam/*.ics "$OUTDIR"/superteam/superteam.ics ical2html --timezone=Europe/Copenhagen --monday --location --title "RUC HumTek-23 Thoughtroam fælles" "$STARTDATE" P40D "$OUTDIR"/superteam/superteam.ics > "$OUTDIR"/superteam/index.html