Skip to content

Commit

Permalink
Build from source pulled from a specific branch on GitHub for "basho"
Browse files Browse the repository at this point in the history
related work and integration of WiredTiger rather than the latest
.tar.bz2 file they distribute.
  • Loading branch information
Gregory Burd authored and vinoski committed Mar 12, 2013
1 parent 789c44b commit 021dcb1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
ebin
priv/*.so
c_src/system
c_src/wiredtiger-*/
c_src/wiredtiger*/
c_src/*.o
*~
17 changes: 11 additions & 6 deletions c_src/build_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,32 @@

set -e

WT_VSN=1.4.2
WT_BRANCH=basho

[ `basename $PWD` != "c_src" ] && cd c_src

BASEDIR="$PWD"

case "$1" in
clean)
rm -rf system wiredtiger-$WT_VSN
rm -rf system wiredtiger
;;

*)
test -f system/lib/libwiredtiger.a && exit 0

tar -xjf wiredtiger-$WT_VSN.tar.bz2

(cd wiredtiger-$WT_VSN/build_posix && \
if [ -d wiredtiger/.git ]; then
(cd wiredtiger && \
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 \
--prefix=$BASEDIR/system && \
make && make install)

;;
esac

Binary file removed c_src/wiredtiger-1.4.2.tar.bz2
Binary file not shown.

0 comments on commit 021dcb1

Please sign in to comment.