From 54f01e1910f918a990a38c6108356f27dbc7b049 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 7 Apr 2014 15:31:16 +0000 Subject: [PATCH] cleanup generated apache --- test/Makefile | 3 ++- test/bin/apache-template-update | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/Makefile b/test/Makefile index 044a048..668d855 100644 --- a/test/Makefile +++ b/test/Makefile @@ -22,6 +22,7 @@ clean: distclean: clean clean-tmp rm -rf node_modules + rm -f ${TMP_DIR}/jasmine-dev clean-tmp: rm -rf ${TMP_DIR} @@ -74,7 +75,7 @@ node_modules node-modules: apache-start: bin/apache-template-update - /usr/sbin/apache2 -f `pwd`/../tools/apache2/jasmine-dev + /usr/sbin/apache2 -f `pwd`/${TMP_DIR}/jasmine-dev apache-stop: @-if [ -e ${TMP_DIR}/mkws-jasmine.pid ]; then \ diff --git a/test/bin/apache-template-update b/test/bin/apache-template-update index 54be8e0..0ad5bc9 100755 --- a/test/bin/apache-template-update +++ b/test/bin/apache-template-update @@ -8,14 +8,15 @@ 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_LOG_DIR=$APACHE_SERVER_ROOT/logs +export APACHE_PID_FILE=$APACHE_LOG_DIR/mkws-jasmine.pid 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"} +: ${MKWS_APACHE_FILE="$APACHE_LOG_DIR/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