wterl/c_src/build_deps.sh

34 lines
634 B
Bash
Raw Normal View History

2011-12-18 20:54:46 +00:00
#!/bin/bash
set -e
WT_BRANCH=basho
2011-12-18 20:54:46 +00:00
[ `basename $PWD` != "c_src" ] && cd c_src
2011-12-18 20:54:46 +00:00
BASEDIR="$PWD"
case "$1" in
clean)
rm -rf system wiredtiger
2011-12-18 20:54:46 +00:00
;;
*)
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 https://github.com/wiredtiger/wiredtiger.git -b $WT_BRANCH && \
(cd wiredtiger && ./autogen.sh)
fi
(cd wiredtiger/build_posix && \
../configure --with-pic \
2011-12-18 20:54:46 +00:00
--prefix=$BASEDIR/system && \
make && make install)
;;
esac