A haskell IRC bot because who doesn't need one
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/sh
-
- usage() {
- echo Usage: $0 '[run|build|watch|clean]'
- }
-
- if ! command -v tup >/dev/null; then
- echo Error: You need tup installed: http://gittup.org/tup/ >&2
- exit 1
- fi
-
- export CWD="$(readlink -f .)"
-
- case $1 in
- run)
- $0 build >&2 || exit 1
- echo '' >&2 && ./Main
- ;;
- watch)
- tup monitor -f -a -j2 >&2
- ;;
- build)
- tup init 2>/dev/null
- tup >&2
- ;;
- clean)
- rm -f Main *.o *.hi IRC/*.o IRC/*.hi IRC/Plugins/*.o IRC/Plugins/*.hi
- ;;
- *)
- usage
- ;;
- esac
|