Files
openocd/bootstrap
T

44 lines
851 B
Bash
Raw Normal View History

2011-06-01 20:59:52 +02:00
#!/bin/sh
# Run the autotools bootstrap sequence to create the configure script
2011-06-01 20:59:52 +02:00
# Abort execution on error
2009-12-04 09:50:55 +01:00
set -e
2011-06-01 20:59:52 +02:00
if which libtoolize > /dev/null; then
libtoolize="libtoolize"
elif which glibtoolize >/dev/null; then
libtoolize="glibtoolize"
else
2011-06-01 20:59:52 +02:00
echo "$0: Error: libtool is required" >&2
exit 1
fi
if [ "$1" = "nosubmodule" ]; then
SKIP_SUBMODULE=1
elif [ -n "$1" ]; then
echo "$0: Illegal argument $1"
echo "USAGE: $0 [nosubmodule]"
exit 1
fi
# bootstrap the autotools
(
set -x
aclocal
${libtoolize} --automake --copy
autoconf
autoheader
automake --gnu --add-missing --copy
)
2011-06-01 20:59:52 +02:00
if [ -n "$SKIP_SUBMODULE" ]; then
2011-05-31 01:52:50 -07:00
echo "Skipping submodule setup"
2011-06-01 20:59:52 +02:00
else
echo "Setting up submodules"
git submodule init
git submodule update
fi
2011-06-01 20:59:52 +02:00
echo "Bootstrap complete. Quick build instructions:"
echo "./configure ...."