summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-08-23 23:19:25 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-23 23:40:54 -0400
commit264cb29e3014acdece32f2e0167b060e22fc9060 (patch)
treeda13ba61314008eef97c53e6b17cca926725602d /configure
parenta70b91c1ba2101b8d8bb9141af13c50b362d6ba5 (diff)
no more rebar templates in configure
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 16 insertions, 5 deletions
diff --git a/configure b/configure
index 7127d6fe..96660243 100755
--- a/configure
+++ b/configure
@@ -5,7 +5,6 @@ function quit {
}
PREFIX="/opt"
-TEMPLATE="production"
DATA="/srv/db"
VIEW="/srv/view_index"
DBCORE_USER=`whoami`
@@ -41,9 +40,21 @@ do
esac
done
+echo "==> configuring dbcore in rel/overlay.config"
+cat > rel/overlay.config << EOF
+{prefix, "$PREFIX"}.
+{core_dir, "$PREFIX/dbcore"}.
+{data_dir, "$DATA"}.
+{view_dir, "$VIEW"}.
+{user, "$DBCORE_USER"}.
+EOF
-echo "configuring dbcore"
+cat > install.mk << EOF
+# The contents of this file are auto-generated by configure
+prefix = $PREFIX
+data_dir = $DATA
+view_dir = $VIEW
+user = $DBCORE_USER
+EOF
-rm -f rebar.config
-# dbcore template
-./rebar create template=$TEMPLATE prefix=$PREFIX data_dir=$DATA view_dir=$VIEW user=$DBCORE_USER force=1
+cat rel/overlay.config