Add scripts

This commit is contained in:
Oliver Davies 2019-03-01 10:14:57 +00:00
parent 1600bd6739
commit be49e3fde1
3 changed files with 18 additions and 0 deletions

5
scripts/build.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
. scripts/common.sh
${SCRIPTDIR}/../vendor/bin/sculpin generate --clean --no-interaction $@

8
scripts/common.sh Normal file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
SCRIPTPATH=$(realpath "$0")
SCRIPTDIR=$(dirname $SCRIPTPATH)

5
scripts/watch.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
. scripts/common.sh
${SCRIPTDIR}/../vendor/bin/sculpin generate --server --watch --clean --no-interaction $@