summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2005-07-06 13:58:29 +0200
committerunknown <lenz@mysql.com>2005-07-06 13:58:29 +0200
commit2a04d15596aa2f86fcfc1291f1460e8b92060e39 (patch)
treec52695bb774510620e0a9b71a079d2c402429e45 /scripts
parent74c0d194bee3db964bb834e6d4d0b560f3e212fe (diff)
downloadmariadb-git-2a04d15596aa2f86fcfc1291f1460e8b92060e39.tar.gz
- 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 scripts/make_binary_distribution.sh: - backported and fixed a change 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 script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/make_binary_distribution.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/make_binary_distribution.sh b/scripts/make_binary_distribution.sh
index ffef1648954..0236d8b8bfe 100644
--- a/scripts/make_binary_distribution.sh
+++ b/scripts/make_binary_distribution.sh
@@ -15,6 +15,7 @@ MV="mv"
STRIP=1
DEBUG=0
SILENT=0
+MACHINE=
TMP=/tmp
SUFFIX=""
@@ -25,6 +26,7 @@ parse_arguments() {
--tmp=*) TMP=`echo "$arg" | sed -e "s;--tmp=;;"` ;;
--suffix=*) SUFFIX=`echo "$arg" | sed -e "s;--suffix=;;"` ;;
--no-strip) STRIP=0 ;;
+ --machine=*) MACHINE=`echo "$arg" | sed -e "s;--machine=;;"` ;;
--silent) SILENT=1 ;;
*)
echo "Unknown argument '$arg'"
@@ -252,8 +254,17 @@ if [ -d $BASE/sql-bench/SCCS ] ; then
find $BASE/sql-bench -name SCCS -print | xargs rm -r -f
fi
+# Use the override --machine if present
+if [ -n "$MACHINE" ] ; then
+ machine=$MACHINE
+fi
+
# Change the distribution to a long descriptive name
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
rm -r -f $BASE2
mv $BASE $BASE2