Initial commit

This commit is contained in:
Dave Smith 2011-12-18 13:54:46 -07:00
commit 2cdf2584f2
6 changed files with 49 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
*.beam
c_src/system
c_src/wiredtiger-*/

6
Makefile Normal file
View file

@ -0,0 +1,6 @@
all:
./rebar compile eunit
clean:
./rebar clean

30
c_src/build_deps.sh Executable file
View file

@ -0,0 +1,30 @@
#!/bin/bash
set -e
WT_VSN=20111212
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 && \
../configure --disable-shared --enable-static --with-pic \
--prefix=$BASEDIR/system && \
make && make install)
;;
esac

Binary file not shown.

BIN
rebar vendored Executable file

Binary file not shown.

10
rebar.config Normal file
View file

@ -0,0 +1,10 @@
{port_envs, [
{"DRV_CFLAGS", "$DRV_CFLAGS -Werror -I c_src/system/include"},
{"DRV_LDFLAGS", "$DRV_LDFLAGS c_src/system/lib/libwiredtiger.a"}
]}.
{pre_hooks, [{compile, "c_src/build_deps.sh"}]}.
{post_hooks, [{clean, "c_src/build_deps.sh clean"}]}.