diff options
| author | user <user@node5.net> | 2024-07-19 23:32:40 +0200 |
|---|---|---|
| committer | user <user@node5.net> | 2024-07-19 23:32:40 +0200 |
| commit | 78e3f6ea427a10edaeac1c056f8a3ab5640e2a0c (patch) | |
| tree | 0bd7a010f00fb07c15577e7fea9fb2128239b82f /Makefile | |
Initial commit - displays events
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..44f0be9 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: update_progam program.xml program.json + +program.xml: + curl https://bornhack.dk/bornhack-2024/program/frab.xml > program.xml + +program.json: + cat program.xml | xq '.schedule.day | map(.room) | flatten | map(.event) | map(select(. != null)) | flatten | map({title, date, room, duration}) | sort_by(.date)' > program.json + +update_progam: program.xml program.json + |
