(unset CDPATH && cd "$_path" > /dev/null && pwd)
}
+HELP=0
+for arg; do
+ case "$arg" in
+ --help) HELP=1;;
+ esac
+done
+
msg "looking for configure programs"
need_cmd cmp
need_cmd mkdir
OPTIONS=""
-HELP=0
-if [ "$1" = "--help" ]
+if [ "$HELP" -eq 1 ]
then
- HELP=1
- shift
echo
echo "Usage: $CFG_SELF [options]"
echo
fi
CMD="${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF}"
- LRV=`$CMD --version`
+ LRV=`LD_LIBRARY_PATH=${CFG_LOCAL_RUST_ROOT}/lib $CMD --version`
if [ $? -ne 0 ]
then
step_msg "failure while running $CMD --version"