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
|
|
|
|
2012-04-04 19:20:08 +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 && \
|
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
|
|
|
|
|