,_,
This commit is contained in:
commit
358ad5a4b5
3 changed files with 33 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
misery
|
||||
misery.dat
|
||||
misery.json
|
22
Makefile
Normal file
22
Makefile
Normal file
|
@ -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
|
8
README.md
Normal file
8
README.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
Warsaw Hackerspace Misery Fortunes
|
||||
==================================
|
||||
|
||||
,\_,
|
||||
|
||||
make
|
||||
sudo make install
|
||||
fortune misery
|
Loading…
Add table
Reference in a new issue