watch
This commit is contained in:
parent
db6c4496e0
commit
ee3805de78
14
make.sh
14
make.sh
@ -1,19 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
usage() {
|
||||
echo Usage: $0 '[run|build|clean]'
|
||||
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
|
||||
|
||||
case $1 in
|
||||
run)
|
||||
$0 build >&2 || exit 1
|
||||
echo '' >&2 && ./Main
|
||||
;;
|
||||
watch)
|
||||
tup monitor -f -a -j2 >&2
|
||||
;;
|
||||
build)
|
||||
if ! command -v tup >/dev/null; then
|
||||
echo Error: You need tup installed to build: http://gittup.org/tup/ >&2
|
||||
exit 1
|
||||
fi
|
||||
tup init 2>/dev/null
|
||||
tup >&2
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user