wterl/c_src/build_deps.sh

31 lines
523 B
Bash
Raw Normal View History

2011-12-18 20:54:46 +00:00
#!/bin/bash
set -e
WT_VSN=20111212
if [ `basename $PWD` != "c_src" ]; then
pushd c_src
fi
BASEDIR="$PWD"
case "$1" in
clean)
rm -rf system wiredtiger-$WT_VSN
;;
*)
test -f system/lib/libwiredtiger.a && exit 0
tar -xjf wiredtiger-$WT_VSN.tar.bz2
(cd wiredtiger-$WT_VSN/build_posix && \
../configure --disable-shared --enable-static --with-pic \
--prefix=$BASEDIR/system && \
make && make install)
;;
esac