[Swift-commit] r6364 - branches/release-0.94/bin
davidk at ci.uchicago.edu
davidk at ci.uchicago.edu
Mon Mar 11 06:11:52 CDT 2013
Author: davidk
Date: 2013-03-11 06:11:52 -0500 (Mon, 11 Mar 2013)
New Revision: 6364
Modified:
branches/release-0.94/bin/gensites
branches/release-0.94/bin/swiftrun
Log:
swiftrun for combining multiple sites
Modified: branches/release-0.94/bin/gensites
===================================================================
--- branches/release-0.94/bin/gensites 2013-03-11 11:07:17 UTC (rev 6363)
+++ branches/release-0.94/bin/gensites 2013-03-11 11:11:52 UTC (rev 6364)
@@ -151,9 +151,9 @@
# Setup for creating a TC file
if [ -f "$PROPERTIES_FILE" ]; then
if [ -n "`grep -e app $PROPERTIES_FILE`" ]; then
- if [ -f "tc.data" ]; then
- mv tc.data tc.data.old
- fi
+ #if [ -f "tc.data" ]; then
+ # mv tc.data tc.data.old
+ #fi
HOSTS=`grep -i "pool handle" $TEMPLATE_PATH|grep -v "^[[:space:]]*#"|cut -d'"' -f2`
fi
fi
Modified: branches/release-0.94/bin/swiftrun
===================================================================
--- branches/release-0.94/bin/swiftrun 2013-03-11 11:07:17 UTC (rev 6363)
+++ branches/release-0.94/bin/swiftrun 2013-03-11 11:11:52 UTC (rev 6364)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash
# Verify an argument is not null
verify_not_null()
@@ -80,11 +80,11 @@
# If config is not defined, but there is a config in conf/ that matches, use that
if [ -z "$CONFIG" ] && [ -f "../conf/$site.cf" ]; then
cp ../conf/$site.cf .
- CONFIG=$site.cf
- fi
+ config=$site.cf
+ fi
- if [ -f "$CONFIG" ]; then
- gensites -p $CONFIG $site >> sites.xml
+ if [ -f "$config" ]; then
+ gensites -p $config $site >> sites.xml
else
gensites $site >> sites.xml
fi
@@ -92,6 +92,9 @@
done
echo "</config>" >> sites.xml
+if [ -z "$CONFIG" ]; then
+ CONFIG=$config
+fi
# Run
timestamp=$( date +%s )
More information about the Swift-commit
mailing list