Build from source pulled from a specific branch on GitHub for "basho"
related work and integration of WiredTiger rather than the latest .tar.bz2 file they distribute.
This commit is contained in:
parent
789c44b133
commit
021dcb10f5
3 changed files with 12 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -3,6 +3,6 @@
|
||||||
ebin
|
ebin
|
||||||
priv/*.so
|
priv/*.so
|
||||||
c_src/system
|
c_src/system
|
||||||
c_src/wiredtiger-*/
|
c_src/wiredtiger*/
|
||||||
c_src/*.o
|
c_src/*.o
|
||||||
*~
|
*~
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
WT_VSN=1.4.2
|
WT_BRANCH=basho
|
||||||
|
|
||||||
[ `basename $PWD` != "c_src" ] && cd c_src
|
[ `basename $PWD` != "c_src" ] && cd c_src
|
||||||
|
|
||||||
|
@ -10,19 +10,24 @@ BASEDIR="$PWD"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
clean)
|
clean)
|
||||||
rm -rf system wiredtiger-$WT_VSN
|
rm -rf system wiredtiger
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
test -f system/lib/libwiredtiger.a && exit 0
|
test -f system/lib/libwiredtiger.a && exit 0
|
||||||
|
|
||||||
tar -xjf wiredtiger-$WT_VSN.tar.bz2
|
if [ -d wiredtiger/.git ]; then
|
||||||
|
(cd wiredtiger && \
|
||||||
(cd wiredtiger-$WT_VSN/build_posix && \
|
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 \
|
../configure --with-pic \
|
||||||
--prefix=$BASEDIR/system && \
|
--prefix=$BASEDIR/system && \
|
||||||
make && make install)
|
make && make install)
|
||||||
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue