mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Fix new bugs in make_binary_distribution
This commit is contained in:
@@ -10,9 +10,17 @@ version=@VERSION@
|
|||||||
export machine system version
|
export machine system version
|
||||||
SOURCE=`pwd`
|
SOURCE=`pwd`
|
||||||
|
|
||||||
|
# Debug option must come first
|
||||||
|
DEBUG=0
|
||||||
|
if test x$1 = x"--debug"
|
||||||
|
then
|
||||||
|
DEBUG=1
|
||||||
|
shift 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Save temporary distribution here (must be full path)
|
# Save temporary distribution here (must be full path)
|
||||||
TMP=/tmp
|
TMP=/tmp
|
||||||
if test $# -gt 0 -a x$1 != x"-debug"
|
if test $# -gt 0
|
||||||
then
|
then
|
||||||
TMP=$1
|
TMP=$1
|
||||||
shift 1
|
shift 1
|
||||||
@@ -20,18 +28,12 @@ fi
|
|||||||
|
|
||||||
# Get optional suffix for distribution
|
# Get optional suffix for distribution
|
||||||
SUFFIX=""
|
SUFFIX=""
|
||||||
if test $# -gt 0 -a x$1 != x"-debug"
|
if test $# -gt 0
|
||||||
then
|
then
|
||||||
SUFFIX=$1
|
SUFFIX=$1
|
||||||
shift 1
|
shift 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$1 = x"-debug"
|
|
||||||
then
|
|
||||||
DEBUG=1
|
|
||||||
shift 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
#make
|
#make
|
||||||
|
|
||||||
@@ -69,11 +71,12 @@ do
|
|||||||
if [ -f $i ]
|
if [ -f $i ]
|
||||||
then
|
then
|
||||||
cp -p $i $BASE/bin
|
cp -p $i $BASE/bin
|
||||||
strip $BASE/bin
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
strip $BASE/bin/*
|
||||||
|
|
||||||
for i in sql/mysqld.sym.gz
|
for i in sql/mysqld.sym.gz
|
||||||
|
do
|
||||||
if [ -f $i ]
|
if [ -f $i ]
|
||||||
then
|
then
|
||||||
cp -p $i $BASE/bin
|
cp -p $i $BASE/bin
|
||||||
@@ -100,8 +103,7 @@ rm -f $BASE/share/mysql/Makefile* $BASE/share/mysql/*/*.OLD
|
|||||||
cp -p mysql-test/mysql-test-run mysql-test/install_test_db $BASE/mysql-test/
|
cp -p mysql-test/mysql-test-run mysql-test/install_test_db $BASE/mysql-test/
|
||||||
cp -p mysql-test/README $BASE/mysql-test/README
|
cp -p mysql-test/README $BASE/mysql-test/README
|
||||||
cp -p mysql-test/include/*.inc $BASE/mysql-test/include
|
cp -p mysql-test/include/*.inc $BASE/mysql-test/include
|
||||||
cp -p mysql-test/std_data/*.dat mysql-test/std_data/*.frm \
|
cp -p mysql-test/std_data/*.dat $BASE/mysql-test/std_data
|
||||||
mysql-test/std_data/*.MRG $BASE/mysql-test/std_data
|
|
||||||
cp -p mysql-test/t/*.test mysql-test/t/*.opt $BASE/mysql-test/t
|
cp -p mysql-test/t/*.test mysql-test/t/*.opt $BASE/mysql-test/t
|
||||||
cp -p mysql-test/r/*.result mysql-test/r/*.require $BASE/mysql-test/r
|
cp -p mysql-test/r/*.result mysql-test/r/*.require $BASE/mysql-test/r
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user