mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
make_binary_distribution.sh:
added --with-ndbcluster switch scripts/make_binary_distribution.sh: added --with-ndbcluster switch
This commit is contained in:
@@ -17,6 +17,7 @@ DEBUG=0
|
|||||||
SILENT=0
|
SILENT=0
|
||||||
TMP=/tmp
|
TMP=/tmp
|
||||||
SUFFIX=""
|
SUFFIX=""
|
||||||
|
NDBCLUSTER=
|
||||||
|
|
||||||
parse_arguments() {
|
parse_arguments() {
|
||||||
for arg do
|
for arg do
|
||||||
@@ -26,6 +27,7 @@ parse_arguments() {
|
|||||||
--suffix=*) SUFFIX=`echo "$arg" | sed -e "s;--suffix=;;"` ;;
|
--suffix=*) SUFFIX=`echo "$arg" | sed -e "s;--suffix=;;"` ;;
|
||||||
--no-strip) STRIP=0 ;;
|
--no-strip) STRIP=0 ;;
|
||||||
--silent) SILENT=1 ;;
|
--silent) SILENT=1 ;;
|
||||||
|
--with-ndbcluster) NDBCLUSTER=1 ;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown argument '$arg'"
|
echo "Unknown argument '$arg'"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -245,6 +247,18 @@ if [ -d $BASE/sql-bench/SCCS ] ; then
|
|||||||
find $BASE/sql-bench -name SCCS -print | xargs rm -r -f
|
find $BASE/sql-bench -name SCCS -print | xargs rm -r -f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# NDB Cluster
|
||||||
|
if [ x$NDBCLUSTER = x1 ]; then
|
||||||
|
if [ ! -f ndb/BinDist.sh ]; then
|
||||||
|
echo "Missing ndb/BinDist.sh"; exit 1
|
||||||
|
fi
|
||||||
|
mkdir $BASE/ndb || exit 1
|
||||||
|
# assume we have cpio..
|
||||||
|
if (cd ndb && sh BinDist.sh | cpio -pdm $BASE/ndb); then :; else
|
||||||
|
echo "Copy failed - missing files in ndb/BinDist.sh ?"; exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Change the distribution to a long descriptive name
|
# Change the distribution to a long descriptive name
|
||||||
NEW_NAME=mysql@MYSQL_SERVER_SUFFIX@-$version-$system-$machine$SUFFIX
|
NEW_NAME=mysql@MYSQL_SERVER_SUFFIX@-$version-$system-$machine$SUFFIX
|
||||||
BASE2=$TMP/$NEW_NAME
|
BASE2=$TMP/$NEW_NAME
|
||||||
|
Reference in New Issue
Block a user