summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2022-11-28 16:17:31 +0200
committerMonty <monty@mariadb.org>2022-11-29 03:34:35 +0200
commitf9c418c67d9a1339364358fe5974547e3f9c511c (patch)
treed687fa33100d68fb84a3c1b612c32d398b0022ba /BUILD
parent5b275b41aa969f08634f62414ce2fd570418feaf (diff)
downloadmariadb-git-f9c418c67d9a1339364358fe5974547e3f9c511c.tar.gz
Fixed the BUILD scripts to work outside of a git repository
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD/FINISH.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/BUILD/FINISH.sh b/BUILD/FINISH.sh
index 037b5ae5754..87077676c31 100644
--- a/BUILD/FINISH.sh
+++ b/BUILD/FINISH.sh
@@ -48,11 +48,15 @@ commands="$commands
path=`dirname $0`
. \"$path/autorun.sh\""
-if [ -z "$just_clean" ]
+if [ -z "$just_clean"]
then
-commands="$commands
-git submodule update
-CC=\"$CC\" CFLAGS=\"$cflags\" CXX=\"$CXX\" CXXFLAGS=\"$cxxflags\" CXXLDFLAGS=\"$CXXLDFLAGS\" $configure"
+ if test -d .git
+ then
+ commands="$commands
+ git submodule update"
+ fi
+ commands="$commands
+ CC=\"$CC\" CFLAGS=\"$cflags\" CXX=\"$CXX\" CXXFLAGS=\"$cxxflags\" CXXLDFLAGS=\"$CXXLDFLAGS\" $configure"
fi
if [ -z "$just_configure" -a -z "$just_clean" ]