Commit 8dffe2cd authored by unknown's avatar unknown

make_binary_distribution.sh:

  - Add --machine override


scripts/make_binary_distribution.sh:
  - Add --machine override
parent 17297898
...@@ -15,6 +15,7 @@ MV="mv" ...@@ -15,6 +15,7 @@ MV="mv"
STRIP=1 STRIP=1
DEBUG=0 DEBUG=0
SILENT=0 SILENT=0
MACHINE=
TMP=/tmp TMP=/tmp
SUFFIX="" SUFFIX=""
NDBCLUSTER= NDBCLUSTER=
...@@ -26,6 +27,7 @@ parse_arguments() { ...@@ -26,6 +27,7 @@ parse_arguments() {
--tmp=*) TMP=`echo "$arg" | sed -e "s;--tmp=;;"` ;; --tmp=*) TMP=`echo "$arg" | sed -e "s;--tmp=;;"` ;;
--suffix=*) SUFFIX=`echo "$arg" | sed -e "s;--suffix=;;"` ;; --suffix=*) SUFFIX=`echo "$arg" | sed -e "s;--suffix=;;"` ;;
--no-strip) STRIP=0 ;; --no-strip) STRIP=0 ;;
--machine) MACHINE=`echo "$arg" | sed -e "s;--machine=;;"` ;;
--silent) SILENT=1 ;; --silent) SILENT=1 ;;
--with-ndbcluster) NDBCLUSTER=1 ;; --with-ndbcluster) NDBCLUSTER=1 ;;
*) *)
...@@ -38,6 +40,8 @@ parse_arguments() { ...@@ -38,6 +40,8 @@ parse_arguments() {
parse_arguments "$@" parse_arguments "$@"
#make #make
# This should really be integrated with automake and not duplicate the # This should really be integrated with automake and not duplicate the
...@@ -310,6 +314,11 @@ system=`echo $system | sed -e 's/linux-gnu/linux/g'` ...@@ -310,6 +314,11 @@ system=`echo $system | sed -e 's/linux-gnu/linux/g'`
system=`echo $system | sed -e 's/solaris2.\([0-9]*\)/solaris\1/g'` system=`echo $system | sed -e 's/solaris2.\([0-9]*\)/solaris\1/g'`
system=`echo $system | sed -e 's/sco3.2v\(.*\)/openserver\1/g'` system=`echo $system | sed -e 's/sco3.2v\(.*\)/openserver\1/g'`
# Use the override --machine if present
if [ $MACHINE != "" ] ; then
machine= $MACHINE
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment