This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
vim
/
hs-irc
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
tweak build script
master
Tiago Carvalho
3 years ago
parent
1c76bd0b0a
commit
9332043bf2
1 changed files
with
26 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+26
-0
make.sh
+ 26
- 0
make.sh
View File
@@ -0,0 +1,26 @@
#!/bin/sh
usage() {
echo Usage: $0 '[run|build|clean]'
}
case $1 in
run)
$0 build >&2 || exit 1
echo '' >&2 && ./Main
;;
build)
if ! command -v tup >/dev/null; then
echo Error: You need tup installed to build: http://gittup.org/tup/
exit 1
fi
tup init 2>/dev/null
tup >&2
;;
clean)
rm -f Main *.o *.hi IRC/*.o IRC/*.hi
;;
*)
usage
;;
esac
Write
Preview
Loading…
Cancel
Save