[Swift-commit] r7504 - branches/release-0.95/bin
davidk at ci.uchicago.edu
davidk at ci.uchicago.edu
Thu Jan 23 22:15:04 CST 2014
Author: davidk
Date: 2014-01-23 22:15:04 -0600 (Thu, 23 Jan 2014)
New Revision: 7504
Modified:
branches/release-0.95/bin/swiftrun
Log:
Move check for -version
Modified: branches/release-0.95/bin/swiftrun
===================================================================
--- branches/release-0.95/bin/swiftrun 2014-01-23 03:17:26 UTC (rev 7503)
+++ branches/release-0.95/bin/swiftrun 2014-01-24 04:15:04 UTC (rev 7504)
@@ -376,6 +376,15 @@
'version' => \$option_version,
);
+# If -version or -help is specified, pass and exit
+if ( $option_help ) {
+ print "-help\n";
+ exit;
+} elsif ( $option_version ) {
+ print "-version\n";
+ exit;
+}
+
# Create/increment run directory
my $run_number = 0;
my @run_directories = <run[0-9][0-9][0-9]>;
@@ -453,15 +462,6 @@
exit;
}
-# If -version or -help is specified, pass and exit
-if ( $option_help ) {
- print "-help\n";
- exit;
-} elsif ( $option_version ) {
- print "-version\n";
- exit;
-}
-
@new_swift_args = ("-Dscript.dir=$run_directory/scripts");
push(@new_swift_args, "-Drestart.log.name=$run_directory/restart.log");
push(@new_swift_args, "-swiftoutlog=$run_directory/swift.out");
More information about the Swift-commit
mailing list