Skip to content

Commit 82ed785

Browse files
committed
Exit the autogen.sh script if one of the commands fail.
1 parent ea463af commit 82ed785

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

autogen.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@ echo aclocal...
66
exit 1
77
}
88

9-
aclocal -I ./scripts -I . ${ACLOCAL_FLAGS}
9+
aclocal -I ./scripts -I . ${ACLOCAL_FLAGS} || exit 1
1010

1111
echo autoheader...
1212
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
1313
echo autoheader not found
1414
exit 1
1515
}
1616

17-
autoheader
17+
autoheader || exit 1
1818

1919
echo -n "libtoolize... "
2020
if ( (glibtoolize --version) < /dev/null > /dev/null 2>&1 ); then
2121
echo "using glibtoolize"
22-
glibtoolize --automake --copy --force
22+
glibtoolize --automake --copy --force || exit 1
2323

2424
elif ( (libtoolize --version) < /dev/null > /dev/null 2>&1 ) ; then
2525
echo "using libtoolize"
26-
libtoolize --automake --copy --force
26+
libtoolize --automake --copy --force || exit 1
2727

2828
else
2929
echo "libtoolize nor glibtoolize not found"
@@ -36,15 +36,15 @@ echo automake...
3636
exit 1
3737
}
3838

39-
automake --add-missing --copy --gnu
39+
automake --add-missing --copy --gnu || exit 1
4040

4141
echo autoconf...
4242
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
4343
echo autoconf not found
4444
exit 1
4545
}
4646

47-
autoconf
47+
autoconf || exit 1
4848

4949
echo ready to configure
5050

0 commit comments

Comments
 (0)