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:
parent
03734c7fb5
commit
e2bfd79336
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue