[Swift-commit] r7286 - trunk/libexec
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Wed Nov 13 01:27:32 CST 2013
Author: hategan
Date: 2013-11-13 01:27:31 -0600 (Wed, 13 Nov 2013)
New Revision: 7286
Modified:
trunk/libexec/_swiftwrap
Log:
cache location of "date" executable to avoid hitting the fs unnecessarily
Modified: trunk/libexec/_swiftwrap
===================================================================
--- trunk/libexec/_swiftwrap 2013-11-11 20:14:05 UTC (rev 7285)
+++ trunk/libexec/_swiftwrap 2013-11-13 07:27:31 UTC (rev 7286)
@@ -44,8 +44,13 @@
fi
}
+# lookup exact executable path for date to avoid going through the path
+# multiple times
+
+DATE_BIN=`which date`
+
logstate() {
- echo "Progress " `date +"%Y-%m-%d %H:%M:%S.%N%z"` " $@" >& "$INFO"
+ echo "Progress " `$DATE_BIN +"%Y-%m-%d %H:%M:%S.%N%z"` " $@" >& "$INFO"
}
log() {
More information about the Swift-commit
mailing list