0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-05 11:38:56 +02:00

tools: Allow a branch argument to buildrocks script.

This commit is contained in:
Jason Volk 2018-04-09 12:42:16 -07:00
parent e160205959
commit ecf0efa7be

View file

@ -5,7 +5,12 @@ if [ -z $LINKAGE ]; then
LINKAGE="shared_lib"
fi
JOBS=$2
BRANCH=$2
if [ -z $BRANCH ]; then
BRANCH="master"
fi
JOBS=$3
if [ -z $JOBS ]; then
JOBS=4
fi
@ -47,6 +52,6 @@ USERDIR=$PWD # Save current dir and return to it later
run git submodule update --init deps/rocksdb
run cd deps/rocksdb
run git checkout v5.5.3
run git checkout $BRANCH
CFLAGS=-fPIC run make -j$JOBS $LINKAGE
run cd $USERDIR # Return to user's original directory