summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
202dd54)
* Empty string as the value for an option is treated as if the option
wasn't provided at all, which makes scripting builds easier.
* Temporary support for legacy-style xc host specifications for the
benefit of clbuild &co. Add a noisy message to the end of the build
so people will hopefully notice.
# Split --foo=bar into --foo and bar.
case $option in
*=*)
# Split --foo=bar into --foo and bar.
case $option in
*=*)
- optarg=`expr "X$option" : '[^=]*=\(.*\)'` || true
+ # For ease of scripting treat skip valued options with empty
+ # values.
+ optarg=`expr "X$option" : '[^=]*=\(.*\)'` || optarg_ok=false
option=`expr "X$option" : 'X\([^=]*=\).*'`
option=`expr "X$option" : 'X\([^=]*=\).*'`
- if test -z "$optarg"
- then
- bad_option "Command-line option has no value: $option"
- fi
- ;;
esac
case $option in
--help | -help | -h)
esac
case $option in
--help | -help | -h)
+ $optarg_ok && SBCL_PREFIX=$optarg
+ ;;
- SBCL_XC_HOST=$optarg ;;
-
- *)
- bad_option "Unknown command-line option to $0: \"$option\""
+ $optarg_ok && SBCL_XC_HOST=$optarg
+ ;
+ -*)
+ bad_option "Unknown command-line option to $0: \"$option\""
+ ;;
+ *)
+ if $some_options
+ then
+ bad_option "Unknown command-line option to $0: \"$option\""
+ else
+ legacy_xc_spec=$option
+ fi
+ ;;
+# Previously XC host was provided as a positional argument.
+if test -n "$legacy_xc_spec"
+then
+ SBCL_XC_HOST="$legacy_xc_spec"
+fi
+
if test "$print_help" = "yes"
then
cat <<EOF
if test "$print_help" = "yes"
then
cat <<EOF
echo
echo " sh install.sh"
echo
echo " sh install.sh"
+# This is probably the best place to ensure people will see this.
+if test -n "$legacy_xc_spec"
+then
+ echo <<EOF
+******************************************************************************
+**
+** Old-style XC-host specification detected: '$SBCL_XC_HOST'
+**
+** Since 1.0.41.45 SBCL expects the XC-host to be specified using
+** the --xc-host='myhost' command line option, not with a positional
+** argument. The legacy style still works, but will not be supported
+** indefinitely. Please update your build procedure.
+**
+******************************************************************************
+EOF
+fi
+
build_finished=`date`
echo
echo "//build started: $build_started"
build_finished=`date`
echo
echo "//build started: $build_started"
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)