From 58d7d6b62eeab782de4ce78349efcc66a4cdead8 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 7 Apr 2014 14:52:23 +0000 Subject: [PATCH] generate apache config file for jasmine --- test/bin/apache-template-update | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 test/bin/apache-template-update diff --git a/test/bin/apache-template-update b/test/bin/apache-template-update new file mode 100755 index 0000000..54be8e0 --- /dev/null +++ b/test/bin/apache-template-update @@ -0,0 +1,22 @@ +#!/bin/sh +# Copyright (c) 2014-2014 IndexData ApS. http://indexdata.com +# Wolfram Schneider +# +# generate temp config file for testing +# + +export APACHE_SERVER_ROOT=$(pwd) +export APACHE_RUN_USER=$(whoami) +export APACHE_RUN_GROUP=$(groups | awk '{ print $1 }') +export APACHE_PID_FILE=$PWD/logs/mkws-jasmine.pid +export APACHE_LOG_DIR=$PWD/logs +export APACHE_PORT=4040 + +export MKWS_ROOT=$(pwd)/.. + +: ${MKWS_APACHE_TEMPLATE="$MKWS_ROOT/tools/apache2/jasmine-dev.template"} +: ${MKWS_APACHE_FILE="$MKWS_ROOT/tools/apache2/jasmine-dev"} + +perl -npe 's,\${(.*?)},$ENV{$1},g; ' $MKWS_APACHE_TEMPLATE > $MKWS_APACHE_FILE.tmp +mv -f $MKWS_APACHE_FILE.tmp $MKWS_APACHE_FILE + -- 1.7.10.4