From 358ad5a4b5ac11724f88c85c66fe7c38c89fbd80 Mon Sep 17 00:00:00 2001 From: Serge Bazanski Date: Mon, 27 Nov 2017 00:21:50 +0000 Subject: [PATCH] ,_, --- .gitignore | 3 +++ Makefile | 22 ++++++++++++++++++++++ README.md | 8 ++++++++ 3 files changed, 33 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f7510a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +misery +misery.dat +misery.json diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..21d74c6 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +FORTUNEDIR = /usr/share/games + +default: misery + +misery.json: + curl oodviewer.q3k.me/term.json/_, > "$@" + +misery: misery.json + cat misery.json | jq -r '.[].entry' | while read -r a; do echo $$a; echo '%'; done > misery + +misery.dat: misery + strfile misery misery.dat + +install: misery.dat + install -c -S -o root -g bin -m 444 misery $(FORTUNEDIR)/misery + install -c -S -o root -g bin -m 444 misery.dat $(FORTUNEDIR)/misery.dat + +uninstall: + rm -f $(FORTUNEDIR)/misery $(FORTUNEDIR)/misery.dat + +clean: + rm -f misery misery.dat misery.json diff --git a/README.md b/README.md new file mode 100644 index 0000000..bf0ad19 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +Warsaw Hackerspace Misery Fortunes +================================== + +,\_, + + make + sudo make install + fortune misery