aboutsummaryrefslogtreecommitdiff
path: root/bin/cal-publish.sh
blob: 9278d3edb99e11036aa1df866a4ae973dec22e20 (plain)
  1. #!/bin/sh
  2. # Depends: ical2html
  3. set -eu
  4. STARTDATE=$(date --date "1 week ago" +%Y%m%d)
  5. OUTDIR=events
  6. mkdir --parents "$OUTDIR/superteam"
  7. icalmerge ~/.calendars/_ruc_thoughtroam/*.ics "$OUTDIR"/superteam/superteam.ics
  8. ical2html --timezone=Europe/Copenhagen --monday --location --title "RUC HumTek-23 Thoughtroam fælles" "$STARTDATE" P40D "$OUTDIR"/superteam/superteam.ics > "$OUTDIR"/superteam/index.html