2 # Copyright (c) 2014-2014 IndexData ApS. http://indexdata.com
5 # generate temp config file for testing
8 export APACHE_SERVER_ROOT=$(pwd)
9 export APACHE_RUN_USER=$(whoami)
10 export APACHE_RUN_GROUP=$(groups | awk '{ print $1 }')
11 export APACHE_PID_FILE=$PWD/logs/mkws-jasmine.pid
12 export APACHE_LOG_DIR=$PWD/logs
13 export APACHE_PORT=4040
15 export MKWS_ROOT=$(pwd)/..
17 : ${MKWS_APACHE_TEMPLATE="$MKWS_ROOT/tools/apache2/jasmine-dev.template"}
18 : ${MKWS_APACHE_FILE="$MKWS_ROOT/tools/apache2/jasmine-dev"}
20 perl -npe 's,\${(.*?)},$ENV{$1},g; ' $MKWS_APACHE_TEMPLATE > $MKWS_APACHE_FILE.tmp
21 mv -f $MKWS_APACHE_FILE.tmp $MKWS_APACHE_FILE