Add scripts
This commit is contained in:
parent
1600bd6739
commit
be49e3fde1
5
scripts/build.sh
Executable file
5
scripts/build.sh
Executable 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
8
scripts/common.sh
Normal 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
5
scripts/watch.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
. scripts/common.sh
|
||||||
|
|
||||||
|
${SCRIPTDIR}/../vendor/bin/sculpin generate --server --watch --clean --no-interaction $@
|
Reference in a new issue