diff options
author | Tomek CEDRO <cederom@tlen.pl> | 2011-06-22 00:13:24 +0200 |
---|---|---|
committer | Tomek CEDRO <cederom@tlen.pl> | 2011-06-22 00:13:24 +0200 |
commit | 2f92060a27074e3446d9d3612b592c2e7f7d97a9 (patch) | |
tree | d10f4620232fd99820a8e7a6763e654f98926f93 /bootstrap | |
parent | 7bf31a6da0224d58fe8c196c5bdb1764790d080c (diff) | |
download | openocd_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
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 28 |
1 files changed, 15 insertions, 13 deletions
@@ -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 ...." |