diff options
author | Tomek CEDRO <cederom@tlen.pl> | 2011-06-25 17:38:55 +0200 |
---|---|---|
committer | Tomek CEDRO <cederom@tlen.pl> | 2011-06-25 17:38:55 +0200 |
commit | 159bad817a8fec79c59db13fc33717c7608d7b88 (patch) | |
tree | c669703f0fd581ebd5892237c5c146bfbedef77b | |
parent | 4c6cba205cde7cd56583af4b3e64476c33ea4278 (diff) | |
download | openocd_libswd-159bad817a8fec79c59db13fc33717c7608d7b88.tar.gz openocd_libswd-159bad817a8fec79c59db13fc33717c7608d7b88.tar.bz2 openocd_libswd-159bad817a8fec79c59db13fc33717c7608d7b88.tar.xz openocd_libswd-159bad817a8fec79c59db13fc33717c7608d7b88.zip |
BOOTSTRAP/SUBMODULES: Minor fix for libswd submodule. Placed git init/update in at the top of bootstrap file.
-rwxr-xr-x | bootstrap | 21 | ||||
-rw-r--r-- | submodules/README | 2 |
2 files changed, 13 insertions, 10 deletions
@@ -1,18 +1,10 @@ #!/bin/sh # Bootstrap script fetches external git submodules and run autotools. +# Autotools create configure script and prepare Makefiles. + # 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 - libtoolize="glibtoolize" -else - echo "$0: Error: libtool is required" >&2 - 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 @@ -31,6 +23,15 @@ else git submodule update fi +# Check if libtool is installed and what version. +if which libtoolize > /dev/null; then + libtoolize="libtoolize" +elif which glibtoolize >/dev/null; then + libtoolize="glibtoolize" +else + echo "$0: Error: libtool is required" >&2 + exit 1 +fi # Bootstrap the autotools (create Makefie.in files and configure script). ( diff --git a/submodules/README b/submodules/README new file mode 100644 index 00000000..ef92e1e7 --- /dev/null +++ b/submodules/README @@ -0,0 +1,2 @@ +Submodules are external utilities or libraries downloaded from external git +repositories to be built with OpenOCD. Submodules are handled by bootstrap. |