[Swift-commit] r7649 - branches/release-0.94/bin

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Fri Mar 7 20:26:58 CST 2014


Author: ketan
Date: 2014-03-07 20:26:58 -0600 (Fri, 07 Mar 2014)
New Revision: 7649

Modified:
   branches/release-0.94/bin/gensites
Log:
small changes in gensites

Modified: branches/release-0.94/bin/gensites
===================================================================
--- branches/release-0.94/bin/gensites	2014-03-08 01:24:08 UTC (rev 7648)
+++ branches/release-0.94/bin/gensites	2014-03-08 02:26:58 UTC (rev 7649)
@@ -160,6 +160,7 @@
 fi
 
 # Parse values into variables for later sed processing
+touch apps
 if [ -f "$PROPERTIES_FILE" ]; then
    while read line
    do
@@ -179,12 +180,12 @@
                   COMMAND_DIRNAME=$(dirname $COMMAND)
                   if [ -d "$COMMAND_DIRNAME" ]; then
                      COMMAND_PATH=$(cd $COMMAND_DIRNAME; pwd)/$(basename $COMMAND)
-                     if ! grep -xq "$HOST $NAME $COMMAND_PATH " ; then
-                         echo "$HOST $NAME $COMMAND_PATH " >> tc.data
+                     if ! grep -xq "$HOST $NAME $COMMAND_PATH " apps ; then
+                         echo "$HOST $NAME $COMMAND_PATH " >> apps
                      fi
                   else
-                     if ! grep -xq "$HOST $NAME $COMMAND_PATH " ; then
-                         echo "$HOST $NAME $COMMAND_PATH " >> tc.data
+                     if ! grep -xq "$HOST $NAME $COMMAND_PATH " apps ; then
+                         echo "$HOST $NAME $COMMAND_PATH " >> apps
                      fi
                   fi
               done
@@ -198,8 +199,8 @@
                     COMMAND=`echo $line|awk '{print $3}'|cut -d'=' -f2`
                     COMMAND=`eval echo $COMMAND`
                     COMMAND_PATH=$(cd $(dirname $COMMAND); pwd)/$(basename $COMMAND)
-                    if ! grep -xq "$HOST $NAME $COMMAND_PATH " ; then
-                        eval echo "$HOST $NAME $COMMAND_PATH " >> tc.data
+                    if ! grep -xq "$HOST $NAME $COMMAND_PATH " apps ; then
+                        eval echo "$HOST $NAME $COMMAND_PATH " >> apps
                      fi
                  fi
                done




More information about the Swift-commit mailing list