mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
tools: Allow a branch argument to buildrocks script.
This commit is contained in:
parent
e160205959
commit
ecf0efa7be
1 changed files with 7 additions and 2 deletions
|
@ -5,7 +5,12 @@ if [ -z $LINKAGE ]; then
|
||||||
LINKAGE="shared_lib"
|
LINKAGE="shared_lib"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
JOBS=$2
|
BRANCH=$2
|
||||||
|
if [ -z $BRANCH ]; then
|
||||||
|
BRANCH="master"
|
||||||
|
fi
|
||||||
|
|
||||||
|
JOBS=$3
|
||||||
if [ -z $JOBS ]; then
|
if [ -z $JOBS ]; then
|
||||||
JOBS=4
|
JOBS=4
|
||||||
fi
|
fi
|
||||||
|
@ -47,6 +52,6 @@ USERDIR=$PWD # Save current dir and return to it later
|
||||||
run git submodule update --init deps/rocksdb
|
run git submodule update --init deps/rocksdb
|
||||||
|
|
||||||
run cd deps/rocksdb
|
run cd deps/rocksdb
|
||||||
run git checkout v5.5.3
|
run git checkout $BRANCH
|
||||||
CFLAGS=-fPIC run make -j$JOBS $LINKAGE
|
CFLAGS=-fPIC run make -j$JOBS $LINKAGE
|
||||||
run cd $USERDIR # Return to user's original directory
|
run cd $USERDIR # Return to user's original directory
|
||||||
|
|
Loading…
Reference in a new issue