diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-08-23 23:19:25 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-23 23:40:54 -0400 |
commit | 264cb29e3014acdece32f2e0167b060e22fc9060 (patch) | |
tree | da13ba61314008eef97c53e6b17cca926725602d /configure | |
parent | a70b91c1ba2101b8d8bb9141af13c50b362d6ba5 (diff) |
no more rebar templates in configure
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -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 |