wterl/c_src/build_deps.sh

29 lines
471 B
Bash
Raw Normal View History

2011-12-18 20:54:46 +00:00
#!/bin/bash
set -e
2012-12-13 04:57:21 +00:00
WT_VSN=1.4.1
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-$WT_VSN
;;
*)
test -f system/lib/libwiredtiger.a && exit 0
tar -xjf wiredtiger-$WT_VSN.tar.bz2
(cd wiredtiger-$WT_VSN/build_posix && \
../configure --with-pic \
2011-12-18 20:54:46 +00:00
--prefix=$BASEDIR/system && \
make && make install)
;;
esac