0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

tools: Improve js build script.

This commit is contained in:
Jason Volk 2017-08-23 15:03:27 -06:00
parent 03734c7fb5
commit e2bfd79336

View file

@ -6,15 +6,10 @@ if [ -z $BRANCH ]; then
fi
CONFIG_OPTIONS=$2
if [ -z $CONFIG_OPTIONS ]; then
if [ -z "$CONFIG_OPTIONS" ]; then
CONFIG_OPTIONS="--enable-optimize"
fi
JOBS=$3
if [ -z $JOBS ]; then
JOBS=4
fi
run ()
{
COMMAND=$1
@ -71,6 +66,6 @@ fi
#run ../configure --enable-debug
# run ../configure --disable-shared-js --enable-debug # --enable-replace-malloc
run make -j $JOBS
run make
run cd $USERDIR # Return to user's original directory