summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomek CEDRO <cederom@tlen.pl>2011-06-22 00:13:24 +0200
committerTomek CEDRO <cederom@tlen.pl>2011-06-22 00:13:24 +0200
commit2f92060a27074e3446d9d3612b592c2e7f7d97a9 (patch)
treed10f4620232fd99820a8e7a6763e654f98926f93
parent7bf31a6da0224d58fe8c196c5bdb1764790d080c (diff)
downloadopenocd_libswd-2f92060a27074e3446d9d3612b592c2e7f7d97a9.tar.gz
openocd_libswd-2f92060a27074e3446d9d3612b592c2e7f7d97a9.tar.bz2
openocd_libswd-2f92060a27074e3446d9d3612b592c2e7f7d97a9.tar.xz
openocd_libswd-2f92060a27074e3446d9d3612b592c2e7f7d97a9.zip
BOOTSTRAP: Moved git submodule routines before autotools are executed. Added comments.w
-rwxr-xr-xbootstrap28
1 files changed, 15 insertions, 13 deletions
diff --git a/bootstrap b/bootstrap
index 8a3945e8..01fd7ea5 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,9 +1,9 @@
#!/bin/sh
-# Run the autotools bootstrap sequence to create the configure script
-
+# Bootstrap script fetches external git submodules and run autotools.
# Abort execution on error
set -e
+# Check if libtool is installed and what version.
if which libtoolize > /dev/null; then
libtoolize="libtoolize"
elif which glibtoolize >/dev/null; then
@@ -13,6 +13,8 @@ else
exit 1
fi
+# Submodules are external libraries downloaded from remote git repositories.
+# To be build automaticaly with OpenOCD. Do we want to skip submodules?
if [ "$1" = "nosubmodule" ]; then
SKIP_SUBMODULE=1
elif [ -n "$1" ]; then
@@ -21,7 +23,16 @@ elif [ -n "$1" ]; then
exit 1
fi
-# bootstrap the autotools
+if [ -n "$SKIP_SUBMODULE" ]; then
+ echo "Skipping submodule setup"
+else
+ echo "Setting up submodules"
+ git submodule init
+ git submodule update
+fi
+
+
+# Bootstrap the autotools (create Makefie.in files and configure script).
(
set -x
aclocal
@@ -33,15 +44,6 @@ automake --gnu --add-missing --copy
# AM_MAINTAINER_MODE requires --enable-maintainer-mode from everyone using
# current source snapshots (working from GIT, or some source snapshot, etc)
-# otherwise the documentation will fail to build due to missing version.texi
-
-if [ -n "$SKIP_SUBMODULE" ]; then
- echo "Skipping submodule setup"
-else
- echo "Setting up submodules"
- git submodule init
- git submodule update
-fi
-
+# otherwise the documentation will fail to build due to missing version.texi.
echo "Bootstrap complete. Quick build instructions:"
echo "./configure --enable-maintainer-mode ...."