www/build.sh

8 lines
195 B
Bash
Executable file

#!/usr/bin/env sh
hugo
tools/merge_cals.py
upcoming="$(tools/gen_upcoming.py static/all.ics 14 5|tr '\n' ' ')"
cp static/all.ics public/all.ics
sed -i "s#CALENDAR#$upcoming#g" public/index.html