diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 00000000..427dc820 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +. scripts/common.sh + +${SCRIPTDIR}/../vendor/bin/sculpin generate --clean --no-interaction $@ diff --git a/scripts/common.sh b/scripts/common.sh new file mode 100644 index 00000000..55bdc129 --- /dev/null +++ b/scripts/common.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +realpath() { + [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" +} + +SCRIPTPATH=$(realpath "$0") +SCRIPTDIR=$(dirname $SCRIPTPATH) diff --git a/scripts/watch.sh b/scripts/watch.sh new file mode 100755 index 00000000..60d5f247 --- /dev/null +++ b/scripts/watch.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +. scripts/common.sh + +${SCRIPTDIR}/../vendor/bin/sculpin generate --server --watch --clean --no-interaction $@