0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 19:58:53 +02: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 fi
CONFIG_OPTIONS=$2 CONFIG_OPTIONS=$2
if [ -z $CONFIG_OPTIONS ]; then if [ -z "$CONFIG_OPTIONS" ]; then
CONFIG_OPTIONS="--enable-optimize" CONFIG_OPTIONS="--enable-optimize"
fi fi
JOBS=$3
if [ -z $JOBS ]; then
JOBS=4
fi
run () run ()
{ {
COMMAND=$1 COMMAND=$1
@ -71,6 +66,6 @@ fi
#run ../configure --enable-debug #run ../configure --enable-debug
# run ../configure --disable-shared-js --enable-debug # --enable-replace-malloc # 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 run cd $USERDIR # Return to user's original directory