[Swift-commit] r7645 - branches/release-0.94/bin
ketan at ci.uchicago.edu
ketan at ci.uchicago.edu
Fri Mar 7 18:04:31 CST 2014
Author: ketan
Date: 2014-03-07 18:04:31 -0600 (Fri, 07 Mar 2014)
New Revision: 7645
Modified:
branches/release-0.94/bin/gensites
Log:
minor fix to gensites
Modified: branches/release-0.94/bin/gensites
===================================================================
--- branches/release-0.94/bin/gensites 2014-03-07 23:15:51 UTC (rev 7644)
+++ branches/release-0.94/bin/gensites 2014-03-08 00:04:31 UTC (rev 7645)
@@ -1,5 +1,4 @@
#!/bin/bash
-
# crash: Report a problem and exit
crash()
{
@@ -180,9 +179,13 @@
COMMAND_DIRNAME=$(dirname $COMMAND)
if [ -d "$COMMAND_DIRNAME" ]; then
COMMAND_PATH=$(cd $COMMAND_DIRNAME; pwd)/$(basename $COMMAND)
- echo $HOST $NAME $COMMAND_PATH null null null >> tc.data
+ if ! grep -xq "$HOST $NAME $COMMAND_PATH " ; then
+ echo "$HOST $NAME $COMMAND_PATH " >> tc.data
+ fi
else
- echo $HOST $NAME $COMMAND null null null >> tc.data
+ if ! grep -xq "$HOST $NAME $COMMAND_PATH " ; then
+ echo "$HOST $NAME $COMMAND_PATH " >> tc.data
+ fi
fi
done
fi
@@ -195,7 +198,9 @@
COMMAND=`echo $line|awk '{print $3}'|cut -d'=' -f2`
COMMAND=`eval echo $COMMAND`
COMMAND_PATH=$(cd $(dirname $COMMAND); pwd)/$(basename $COMMAND)
- eval echo $HOST $NAME $COMMAND_PATH null null null >> tc.data
+ if ! grep -xq "$HOST $NAME $COMMAND_PATH " ; then
+ eval echo "$HOST $NAME $COMMAND_PATH " >> tc.data
+ fi
fi
done
fi
More information about the Swift-commit
mailing list