summaryrefslogtreecommitdiff
path: root/BUILD/FINISH.sh
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-01-10 19:36:38 +0200
committerMonty <monty@mariadb.org>2018-01-10 19:36:38 +0200
commitec97aba28462aab18137f96317c4b441385df12a (patch)
tree2111cedae13afa37e992296545ee277daf7f626d /BUILD/FINISH.sh
parentdfde5ae912d402ec68fd17eda92112d84a07ffdd (diff)
downloadmariadb-git-ec97aba28462aab18137f96317c4b441385df12a.tar.gz
Fixed BUILD scripts
- Skip 'clean' if not a git repository (Good for tar files) - Add configuration for ASAN builds
Diffstat (limited to 'BUILD/FINISH.sh')
-rw-r--r--BUILD/FINISH.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/BUILD/FINISH.sh b/BUILD/FINISH.sh
index 20784c49f0b..1faf62a9b62 100644
--- a/BUILD/FINISH.sh
+++ b/BUILD/FINISH.sh
@@ -14,7 +14,7 @@
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
# MA 02110-1301, USA
-
+set -x -v
cflags="$c_warnings $extra_flags $EXTRA_FLAGS $EXTRA_CFLAGS"
cxxflags="$cxx_warnings $base_cxxflags $extra_flags $EXTRA_FLAGS $EXTRA_CXXFLAGS"
extra_configs="$extra_configs $local_infile_configs $EXTRA_CONFIGS"
@@ -32,15 +32,19 @@ then
configure="$configure --verbose"
fi
+commands=""
# git clean -fdX removes all ignored (build) files
-commands="\
+if test -d .git
+then
+ commands="\
git clean -fdX
cd ./libmariadb
git submodule update
cd ../storage/rocksdb/rocksdb
git submodule update
-cd ../../..
-
+cd ../../.."
+fi
+commands="$commands
path=`dirname $0`
. \"$path/autorun.sh\""