From 86955b0aef61f2507767fc81717c925787d1c910 Mon Sep 17 00:00:00 2001 From: Steve Vinoski Date: Fri, 26 Oct 2012 10:22:59 -0400 Subject: [PATCH] modify enable-wterl to avoid adding wterl repeatedly Before modifying files to add wterl, check to make sure the addition hasn't already been made. Also change to do a stagedevrel build instead of a devrel build. --- enable-wterl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enable-wterl b/enable-wterl index ede431c..873e999 100755 --- a/enable-wterl +++ b/enable-wterl @@ -35,7 +35,7 @@ fi rebar get-deps file=./deps/riak_kv/src/riak_kv.app.src -if ! grep -q hanoidb $file ; then +if ! grep -q hanoidb $file && ! grep -q wterl $file ; then echo echo "Modifying $file, saving the original as ${file}.orig ..." perl -i.orig -pe '/\bos_mon,/ && print qq( wterl,\n)' $file @@ -51,7 +51,7 @@ fi rebar get-deps rm -rf dev -make all devrel +make all stagedevrel echo echo 'Modifying all dev/dev*/etc/app.config files, saving originals with .orig suffix...'