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