Skip to content

Commit

Permalink
Bugfixes and cleanup to configure script
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Mar 9, 2014
1 parent 62f1d68 commit 99746d4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ err() {
need_ok() {
if [ $? -ne 0 ]
then
err $1
err "$1"
fi
}

Expand Down Expand Up @@ -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=""
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 99746d4

Please sign in to comment.