From a76129971e2fa7426afe5d1be6b4d0061941d0b4 Mon Sep 17 00:00:00 2001 From: Brad Pitcher Date: Wed, 25 Jan 2012 07:43:43 -0800 Subject: [PATCH 1/2] updates submodules if building from git --- scripts/release-common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/release-common.sh b/scripts/release-common.sh index 296c14a5..ad7b3fa8 100755 --- a/scripts/release-common.sh +++ b/scripts/release-common.sh @@ -110,6 +110,10 @@ case $OS in ;; esac +if [ -n .git ]; then + git submodule update +fi + if [ -n $EXAMPLESDIR ]; then echo $EXAMPLESDIR mkdir -p $EXAMPLESDIR From 1b5dbe0dda0d98baea21747f0b2bfa08ee38b499 Mon Sep 17 00:00:00 2001 From: Brad Pitcher Date: Wed, 25 Jan 2012 13:06:27 -0800 Subject: [PATCH 2/2] check that the .git directory exists --- scripts/release-common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release-common.sh b/scripts/release-common.sh index ad7b3fa8..72ae29c4 100755 --- a/scripts/release-common.sh +++ b/scripts/release-common.sh @@ -110,7 +110,7 @@ case $OS in ;; esac -if [ -n .git ]; then +if [ -d .git ]; then git submodule update fi