]> git.lizzy.rs Git - rust.git/commitdiff
Bugfixes and cleanup to configure script
authorBrian Anderson <banderson@mozilla.com>
Sun, 2 Mar 2014 05:39:05 +0000 (21:39 -0800)
committerBrian Anderson <banderson@mozilla.com>
Sun, 9 Mar 2014 21:17:26 +0000 (14:17 -0700)
configure

index a69069183e768af49facca6f160fdfa73ac97770..c9fa978c8fd9491e4c65572444b462eba0f05a9b 100755 (executable)
--- a/configure
+++ b/configure
@@ -22,7 +22,7 @@ err() {
 need_ok() {
     if [ $? -ne 0 ]
     then
-        err $1
+        err "$1"
     fi
 }
 
@@ -340,7 +340,7 @@ DEFAULT_BUILD="${CFG_CPUTYPE}-${CFG_OSTYPE}"
 
 CFG_SRC_DIR="$(cd $(dirname $0) && pwd)/"
 CFG_BUILD_DIR="$(pwd)/"
-CFG_SELF=${CFG_SRC_DIR}$(basename $0)
+CFG_SELF="$0"
 CFG_CONFIGURE_ARGS="$@"
 
 OPTIONS=""
@@ -412,16 +412,15 @@ fi
 valopt libdir "${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}" "install libraries"
 valopt rustlibdir "rustlib" "subdirectory name for rustc's libraries"
 
-# Validate Options
-step_msg "validating $CFG_SELF args"
-validate_opt
-
 if [ $HELP -eq 1 ]
 then
     echo
     exit 0
 fi
 
+# Validate Options
+step_msg "validating $CFG_SELF args"
+validate_opt
 
 step_msg "looking for build programs"