summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-06-12 11:59:14 +0300
committerunknown <monty@hundin.mysql.fi>2001-06-12 11:59:14 +0300
commit01c886ee22bd87b27348092d60a256b6735c3729 (patch)
tree4e438515e2f773e374dc634cf25249392ab69fc1 /scripts
parent8b76fb7f3ef18727fcc1b06733fd190a0741a321 (diff)
downloadmariadb-git-01c886ee22bd87b27348092d60a256b6735c3729.tar.gz
Added --verbose option to mysqlshow
Fixes for making distribution Build-tools/Do-compile: Added --no-strip option Docs/manual.texi: Changelog and some fixes to comparison section client/mysqlshow.c: Added --verbose option mysql-test/r/create.result: Test of CREATE ... SELECT with keys mysql-test/t/create.test: Test of CREATE ... SELECT with keys scripts/make_binary_distribution.sh: Changed to use long options sql-bench/Comments/postgres.benchmark: update sql-bench/server-cfg.sh: update to use 'vacuum analyze'
Diffstat (limited to 'scripts')
-rw-r--r--scripts/make_binary_distribution.sh55
1 files changed, 32 insertions, 23 deletions
diff --git a/scripts/make_binary_distribution.sh b/scripts/make_binary_distribution.sh
index 84dac59018b..40c48188346 100644
--- a/scripts/make_binary_distribution.sh
+++ b/scripts/make_binary_distribution.sh
@@ -11,30 +11,29 @@ export machine system version
SOURCE=`pwd`
CP="cp -p"
-# Debug option must come first
+STRIP=1
DEBUG=0
-if test x$1 = x"--debug"
-then
- DEBUG=1
- shift 1
-fi
-
-# Save temporary distribution here (must be full path)
+SILENT=0
TMP=/tmp
-if test $# -gt 0
-then
- TMP=$1
- shift 1
-fi
-
-# Get optional suffix for distribution
SUFFIX=""
-if test $# -gt 0
-then
- SUFFIX=$1
- shift 1
-fi
+parse_arguments() {
+ for arg do
+ case "$arg" in
+ --debug) DEBUG=1;;
+ --tmp=*) TMP=`echo "$arg" | sed -e "s;--tmp=;;"` ;;
+ --suffix=*) SUFFIX=`echo "$arg" | sed -e "s;--suffix=;;"` ;;
+ --no-strip) STRIP=0 ;;
+ --silent) SILENT=1 ;;
+ *)
+ echo "Unknown argument '$arg'"
+ exit 1
+ ;;
+ esac
+ done
+}
+
+parse_arguments "$@"
#make
@@ -68,14 +67,18 @@ for i in extra/comp_err extra/replace extra/perror extra/resolveip \
client/mysql sql/mysqld client/mysqlshow client/mysqlcheck \
client/mysqladmin client/mysqldump client/mysqlimport client/mysqltest \
client/.libs/mysql client/.libs/mysqlshow client/.libs/mysqladmin \
- client/.libs/mysqldump client/.libs/mysqlimport client/.libs/mysqltest
+ client/.libs/mysqldump client/.libs/mysqlimport client/.libs/mysqltest \
+ client/.libs/mysqlcheck
do
if [ -f $i ]
then
$CP $i $BASE/bin
fi
done
-strip $BASE/bin/*
+
+if [ x$STRIP = x1 ] ; then
+ strip $BASE/bin/*
+fi
for i in sql/mysqld.sym.gz
do
@@ -190,7 +193,13 @@ fi
echo "Using $tar to create archive"
cd $TMP
-$tar cvf $SOURCE/$NEW_NAME.tar $NEW_NAME
+
+OPT=cvf
+if [ x$SILENT = x1 ] ; then
+ OPT=cf
+fi
+
+$tar $OPT $SOURCE/$NEW_NAME.tar $NEW_NAME
cd $SOURCE
echo "Compressing archive"
gzip -9 $NEW_NAME.tar