heptocat / fortune

collection of fortune cookies to any imaginable topic
2 stars 6 forks source link

Add setup script for all fortunes, move fortunes to dedicated directory #11

Closed laurendc closed 5 years ago

laurendc commented 5 years ago

Tiny shell script that symlinks all custom fortunes to the fortunes directory on the host and automatically runs strfile against those files.

Tested on macOS but I have made all attempts to make the script POSIX-compliant and believe it will be fine elsewhere. I also have a Debian system at home I can test on if you wish.

The easiest path for me to get the script to work was to move all fortunes to a directory within the project called custom_fortunes. If there are other options for this that would ease iteration, please make suggestions.

heptocat commented 5 years ago

Awesome. I merged but edited the setup script. On ubuntu, fortune isn't installed under that path. I don't know how POSIX-compliant my change is though... I'll merge, feel free to keep tampering.