[Swift-commit] r2226 - trunk/libexec
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Wed Sep 17 14:00:53 CDT 2008
Author: benc
Date: 2008-09-17 14:00:52 -0500 (Wed, 17 Sep 2008)
New Revision: 2226
Modified:
trunk/libexec/wrapper.sh
Log:
If supplied executable is not an absolute path, look up the path using "which"
Modified: trunk/libexec/wrapper.sh
===================================================================
--- trunk/libexec/wrapper.sh 2008-09-09 14:08:00 UTC (rev 2225)
+++ trunk/libexec/wrapper.sh 2008-09-17 19:00:52 UTC (rev 2226)
@@ -163,6 +163,10 @@
export PATH=$PATHPREFIX:$PATH
fi
+if [ "X${EXEC:1:1}" != "X/" ] ; then
+export EXEC=$(which $EXEC)
+fi
+
log "DIR=$DIR"
log "EXEC=$EXEC"
log "STDIN=$STDIN"
More information about the Swift-commit
mailing list