Commit 49986c7e authored by lenz@mysql.com's avatar lenz@mysql.com

- backported a change for make_binary_distribution.sh from 5.0 for easier building of

  all versions: added an option "--machine" that allows to override the autodetected
  architecture string (e.g. "i386") that becomes part of the binary package name with 
  a different one
- moved the removal of the BASE directory to the end of the make_binary_distribution
  script
parent eaac485b
...@@ -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=""
...@@ -25,6 +26,7 @@ parse_arguments() { ...@@ -25,6 +26,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 ;;
*) *)
echo "Unknown argument '$arg'" echo "Unknown argument '$arg'"
...@@ -252,8 +254,17 @@ if [ -d $BASE/sql-bench/SCCS ] ; then ...@@ -252,8 +254,17 @@ 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
# Use the override --machine if present
if [ -n "$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
# Print the platform name for build logs
echo "PLATFORM NAME: $system-$machine"
BASE2=$TMP/$NEW_NAME BASE2=$TMP/$NEW_NAME
rm -r -f $BASE2 rm -r -f $BASE2
mv $BASE $BASE2 mv $BASE $BASE2
......
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