1
0
Fork 0
forked from len0rd/rockbox

Exit the configure script with non-zero status on errors.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19392 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonas Häggqvist 2008-12-11 17:24:04 +00:00
parent eb6db0a647
commit ea5457ca90

16
tools/configure vendored
View file

@ -116,7 +116,7 @@ simcc () {
echo "configure didn't find sdl-config, which indicates that you" echo "configure didn't find sdl-config, which indicates that you"
echo "don't have SDL (properly) installed. Please correct and" echo "don't have SDL (properly) installed. Please correct and"
echo "re-run configure!" echo "re-run configure!"
exit exit 1
fi fi
# default share option, override below if needed # default share option, override below if needed
@ -161,7 +161,7 @@ simcc () {
*) *)
echo "Unsupported system: $uname, fix configure and retry" echo "Unsupported system: $uname, fix configure and retry"
exit exit 2
;; ;;
esac esac
@ -472,7 +472,7 @@ voiceconfig () {
if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then if [ "$FESTIVAL" = "$FLITE" ] && [ "$FLITE" = "$ESPEAK" ] && [ "$ESPEAK" = "$SAPI" ] && [ "$SAPI" = "$SWIFT" ]; then
echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files" echo "You need Festival, eSpeak or Flite in your path, or SAPI available to build voice files"
exit exit 3
fi fi
echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?" echo "TTS engine to use: ${FLITE}${FESTIVAL}${ESPEAK}${SAPI}${SWIFT}(${DEFAULT_CHOICE})?"
@ -531,7 +531,7 @@ voiceconfig () {
else else
echo "You need LAME in the system path to build voice files for" echo "You need LAME in the system path to build voice files for"
echo "HWCODEC targets." echo "HWCODEC targets."
exit exit 4
fi fi
fi fi
@ -639,7 +639,7 @@ if test -r "configure"; then
echo " ../tools/configure" echo " ../tools/configure"
echo "" echo ""
echo "Much happiness will arise from this. Enjoy" echo "Much happiness will arise from this. Enjoy"
exit exit 5
fi fi
fi fi
@ -651,7 +651,7 @@ if { echo $pwd | grep " "; } then
echo "system is unfortunately not clever enough to deal with this. Please" echo "system is unfortunately not clever enough to deal with this. Please"
echo "run the script from a different path, rename the path or fix the build" echo "run the script from a different path, rename the path or fix the build"
echo "system!" echo "system!"
exit exit 6
fi fi
if [ -z "$rootdir" ]; then if [ -z "$rootdir" ]; then
@ -1940,7 +1940,7 @@ fi
;; ;;
*) *)
echo "Please select a supported target platform!" echo "Please select a supported target platform!"
exit exit 7
;; ;;
esac esac
@ -2100,7 +2100,7 @@ fi
*) *)
if [ "$modelname" = "e200r" ]; then if [ "$modelname" = "e200r" ]; then
echo "Do not use the e200R target for regular builds. Use e200 instead." echo "Do not use the e200R target for regular builds. Use e200 instead."
exit exit 8
fi fi
debug="" debug=""
echo "Normal build selected" echo "Normal build selected"