ab45690a4b
(Illumos, SmartOS, Solaris... I'm looking at you.) Speed up builds by running make in parallel (use all the cores!).
32 lines
721 B
Bash
Executable file
32 lines
721 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
WT_BRANCH=basho
|
|
|
|
[ `basename $PWD` != "c_src" ] && cd c_src
|
|
|
|
BASEDIR="$PWD"
|
|
|
|
case "$1" in
|
|
clean)
|
|
rm -rf system wiredtiger
|
|
;;
|
|
|
|
*)
|
|
test -f system/lib/libwiredtiger.a && exit 0
|
|
|
|
if [ -d wiredtiger/.git ]; then
|
|
(cd wiredtiger && \
|
|
git fetch && \
|
|
git merge origin/$WT_BRANCH)
|
|
else
|
|
git clone http://github.com/wiredtiger/wiredtiger.git -b $WT_BRANCH && \
|
|
(cd wiredtiger && ./autogen.sh)
|
|
fi
|
|
(cd wiredtiger/build_posix && \
|
|
../configure --with-pic \
|
|
--prefix=$BASEDIR/system && \
|
|
make -j 8 && make install)
|
|
;;
|
|
esac
|