Skip to content

Commit

Permalink
Merge branch 'linux-master'
Browse files Browse the repository at this point in the history
* linux-master:
  make compile on linux
  add gitignore
  • Loading branch information
Jan Lehnardt committed Aug 6, 2009
2 parents b9deb37 + 737bb4a commit 02df983
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .gitignore
@@ -0,0 +1,14 @@
.couchdb-downloaded
.couchdb-installed
.erlang-downloaded
.erlang-installed
.js-downloaded
.js-installed
couchdbx-core--R13B01.tar.gz
couchdbx-core/
dist/
src/couchdb/
src/erlang/
src/js-1.7.0.tar.gz
src/js/
src/otp_src_R13B01.tar.gz
18 changes: 13 additions & 5 deletions couchdbx-core-builder.sh
Expand Up @@ -190,8 +190,10 @@ couchdb_link_erl_driver()

couchdb_post_install()
{
# build couch_erl_driver.so against bundlered ICU
couchdb_link_erl_driver
if [ "`uname`" eq "Darwin"]; then
# build couch_erl_driver.so against bundlered ICU
couchdb_link_erl_driver
fi

cd ../../dist/couchdb
# replace absolute to relative paths
Expand Down Expand Up @@ -245,13 +247,19 @@ download_js()
install_js()
{
if [ ! -e .js-installed ]; then
uname=`uname`
if [ "$uname" -eq "Darwin" ]; then
soext="dylib"
else
soext="so"
fi
cd src/js
cd src
make $MAKEOPTS -f Makefile.ref
JS_DIST=$WORKDIR/dist/js make -f Makefile.ref export
cd ../../../
mkdir dist/Darwin_DBG.OBJ/
cp dist/js/lib/libjs.dylib dist/Darwin_DBG.OBJ/libjs.dylib
mkdir -p dist/${uname}_DBG.OBJ/
cp dist/js/lib*/libjs.$soext dist/${uname}_DBG.OBJ/libjs.$soext
touch .js-installed
fi
}
Expand All @@ -273,7 +281,7 @@ package()
rm -rf couchdbx-core
mkdir couchdbx-core
cp -r dist/* couchdbx-core
tar czf couchdbx-core-$COCUHDB_VERSION-$ERLANG_VERSION.tar.gz couchdbx-core
tar czf couchdbx-core-$COUCHDB_VERSION-$ERLANG_VERSION.tar.gz couchdbx-core
}

# main:
Expand Down

0 comments on commit 02df983

Please sign in to comment.