changeset 22209:a0d3cabfdee0

Make autogen.sh return a non-zero exit code when it fails so that ./autogen.sh && make does the right thing.
author Will Thompson <will.thompson@collabora.co.uk>
date Fri, 25 Jan 2008 20:43:15 +0000
parents fbdf8136c98c
children a276345c21a0
files autogen.sh
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/autogen.sh	Fri Jan 25 13:48:24 2008 +0000
+++ b/autogen.sh	Fri Jan 25 20:43:15 2008 +0000
@@ -9,42 +9,42 @@
 	echo;
 	echo "You must have glib-gettextize installed to compile Pidgin.";
 	echo;
-	exit;
+	exit 1;
 }
 
 (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
 	echo;
 	echo "You must have intltool installed to compile Pidgin.";
 	echo;
-	exit;
+	exit 1;
 }
 
 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
 	echo;
 	echo "You must have libtool installed to compile Pidgin.";
 	echo;
-	exit;
+	exit 1;
 }
 
 (automake --version) < /dev/null > /dev/null 2>&1 || {
 	echo;
 	echo "You must have automake installed to compile Pidgin.";
 	echo;
-	exit;
+	exit 1;
 }
 
 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
 	echo;
 	echo "You must have autoconf installed to compile Pidgin.";
 	echo;
-	exit;
+	exit 1;
 }
 
 echo "Generating configuration files for Pidgin, please wait...."
 echo;
 
 echo "Running libtoolize, please ignore non-fatal messages...."
-echo n | libtoolize --copy --force || exit;
+echo n | libtoolize --copy --force || exit 1;
 
 # Add other directories to this list if people continue to experience
 # brokennesses ...  Obviously the real answer is for them to fix it
@@ -60,11 +60,11 @@
 libtoolize -c -f --automake
 glib-gettextize --force --copy
 intltoolize --force --copy
-aclocal $ACLOCAL_FLAGS || exit;
-autoheader || exit;
+aclocal $ACLOCAL_FLAGS || exit 1;
+autoheader || exit 1;
 automake --add-missing --copy;
-autoconf || exit;
-automake || exit;
+autoconf || exit 1;
+automake || exit 1;
 
 echo;
 echo "Running ./configure ${CONFIGURE_ARGS} $@"