[Swift-commit] r3525 - usertools/swift/swiftconfig/bin
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Thu Aug 12 00:59:24 CDT 2010
Author: davidk
Date: 2010-08-12 00:59:24 -0500 (Thu, 12 Aug 2010)
New Revision: 3525
Modified:
usertools/swift/swiftconfig/bin/swiftrun
Log:
Update to relative paths
Modified: usertools/swift/swiftconfig/bin/swiftrun
===================================================================
--- usertools/swift/swiftconfig/bin/swiftrun 2010-08-12 05:27:06 UTC (rev 3524)
+++ usertools/swift/swiftconfig/bin/swiftrun 2010-08-12 05:59:24 UTC (rev 3525)
@@ -121,9 +121,9 @@
foreach my $input_file (@option_inputs) {
# Check for relative path
- my $relative_file = getcwd() . "/$input_file";
- if ( -e $relative_file ) {
- $input_file = $relative_file;
+ my $first_char = substr $input_file, 0, 1;
+ if( $first_char ne '/') {
+ $input_file = getcwd() . "/$input_file";
}
if ( !-e $input_file ) {
More information about the Swift-commit
mailing list