2011-12-18 20:54:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2012-03-28 14:20:42 +00:00
|
|
|
WT_VSN=1.1.2
|
2011-12-18 20:54:46 +00:00
|
|
|
|
|
|
|
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 && \
|
2012-02-16 19:54:05 +00:00
|
|
|
../configure --with-pic \
|
2011-12-18 20:54:46 +00:00
|
|
|
--prefix=$BASEDIR/system && \
|
|
|
|
make && make install)
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|