aboutsummaryrefslogtreecommitdiff
path: root/bin/cal-publish.sh
blob: 7d541eeea1f10a167da42b7b25834fb4d76726dc (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/learn" "$OUTDIR/code" "$OUTDIR/use" "$OUTDIR/superteam"
  7. #icalmerge ~/.calendars/_ruc_thoughtroam-learn/*.ics "$OUTDIR"/learn/learn.ics
  8. icalmerge ~/.calendars/_ruc_thoughtroam-code/*.ics "$OUTDIR"/code/code.ics
  9. #icalmerge ~/.calendars/_ruc_thoughtroam-use/*.ics "$OUTDIR"/use/use.ics
  10. icalmerge ~/.calendars/_ruc_thoughtroam/*.ics "$OUTDIR"/superteam/superteam.ics
  11. #ical2html --monday --title "RUC HumTek-23 Thoughtroam kode" "$STARTDATE" P40D "$OUTDIR"/learn/learn.ics > "$OUTDIR"/learn/index.html
  12. ical2html --monday --title "RUC HumTek-23 Thoughtroam læring" "$STARTDATE" P40D "$OUTDIR"/code/code.ics > "$OUTDIR"/code/index.html
  13. #ical2html --monday --title "RUC HumTek-23 Thoughtroam brug" "$STARTDATE" P40D "$OUTDIR"/use/use.ics > "$OUTDIR"/use/index.html
  14. ical2html --monday --title "RUC HumTek-23 Thoughtroam fælles" "$STARTDATE" P40D "$OUTDIR"/superteam/superteam.ics > "$OUTDIR"/superteam/index.html