summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoruser <user@node5.net>2024-07-19 23:32:40 +0200
committeruser <user@node5.net>2024-07-19 23:32:40 +0200
commit78e3f6ea427a10edaeac1c056f8a3ab5640e2a0c (patch)
tree0bd7a010f00fb07c15577e7fea9fb2128239b82f /Makefile
Initial commit - displays events
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
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
+