Skip to content

Commit 22b7024

Browse files
author
dreiss
committed
THRIFT-500. A bunch of small changes to bootstrap.sh
- Use "set -e" instead of exit 1 - Separate libtoolize detection and execution - Reorder some programs to prevent spurious warnings git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991241 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4a4a041 commit 22b7024

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

bootstrap.sh

+12-6
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,21 @@
2222
./cleanup.sh
2323
(cd lib/php/src/ext/thrift_protocol && phpize)
2424

25-
autoscan || exit 1
26-
aclocal -I ./aclocal || exit 1
27-
autoheader || exit 1
25+
set -e
2826

27+
# libtoolize is called "glibtoolize" on OSX.
2928
if libtoolize --version 1 >/dev/null 2>/dev/null; then
30-
libtoolize --copy --automake || exit 1
29+
LIBTOOLIZE=libtoolize
3130
elif glibtoolize --version 1 >/dev/null 2>/dev/null; then
32-
glibtoolize --copy --automake || exit 1
31+
LIBTOOLIZE=glibtoolize
32+
else
33+
echo >&2 "Couldn't find libtoolize!"
34+
exit 1
3335
fi
3436

37+
autoscan
38+
$LIBTOOLIZE --copy --automake
39+
aclocal -I ./aclocal
40+
autoheader
3541
autoconf
36-
automake -ac --add-missing --foreign || exit 1
42+
automake --copy --add-missing --foreign

0 commit comments

Comments
 (0)