mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
merge with 4.0.15
This commit is contained in:
@@ -13,8 +13,8 @@ DEBUG=0
|
||||
SILENT=0
|
||||
SUFFIX=""
|
||||
DIRNAME=""
|
||||
OUTTAR=0
|
||||
OUTZIP=0
|
||||
OUTTAR="0"
|
||||
OUTZIP="0"
|
||||
|
||||
#
|
||||
# This script must run from MySQL top directory
|
||||
@@ -114,16 +114,37 @@ done
|
||||
# Convert argument file from unix to DOS text
|
||||
#
|
||||
|
||||
unix_to_dos()
|
||||
{
|
||||
for arg do
|
||||
print_debug "Replacing LF -> CRLF from '$arg'"
|
||||
if [ `which recode` ]
|
||||
then
|
||||
|
||||
sed -e 's/$/\r/' $arg > $arg.tmp
|
||||
rm -f $arg
|
||||
mv $arg.tmp $arg
|
||||
done
|
||||
}
|
||||
print_debug "Using 'recode' to convert from unix to dos text"
|
||||
|
||||
unix_to_dos()
|
||||
{
|
||||
for arg do
|
||||
print_debug "Replacing LF -> CRLF from '$arg'"
|
||||
|
||||
chmod u+w $arg
|
||||
recode lat1..ibmpc $arg
|
||||
done
|
||||
}
|
||||
|
||||
else
|
||||
|
||||
print_debug "Using 'sed' to convert from unix to dos text"
|
||||
|
||||
unix_to_dos()
|
||||
{
|
||||
for arg do
|
||||
print_debug "Replacing LF -> CRLF from '$arg'"
|
||||
|
||||
sed -e 's/$/\r/' $arg > $arg.tmp
|
||||
rm -f $arg
|
||||
mv $arg.tmp $arg
|
||||
done
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
|
||||
#
|
||||
@@ -363,8 +384,10 @@ which_1 ()
|
||||
# Create the result zip/tar file
|
||||
#
|
||||
|
||||
if [ [ "$OUTTAR" = "0" ] && [ "$OUTZIP" = "0" ] ]; then
|
||||
OUTZIP=1
|
||||
if [ "$OUTTAR" = "0" ]; then
|
||||
if [ "$OUTZIP" = "0" ]; then
|
||||
OUTZIP=1
|
||||
fi
|
||||
fi
|
||||
|
||||
set_tarzip_options()
|
||||
|
@@ -33,6 +33,7 @@ parse_arguments() {
|
||||
--basedir=*) basedir=`echo "$arg" | sed -e 's/^[^=]*=//'` ;;
|
||||
--ldata=*|--datadir=*) ldata=`echo "$arg" | sed -e 's/^[^=]*=//'` ;;
|
||||
--user=*) user=`echo "$arg" | sed -e 's/^[^=]*=//'` ;;
|
||||
--skip-name-resolve) ip_only=1 ;;
|
||||
--verbose) verbose=1 ;;
|
||||
--rpm) in_rpm=1 ;;
|
||||
--windows) windows=1 ;;
|
||||
@@ -166,6 +167,12 @@ then
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$ip_only" -eq 1
|
||||
then
|
||||
ip=`echo "$resolved" | awk '/ /{print $6}'`
|
||||
hostname=$ip
|
||||
fi
|
||||
|
||||
# Create database directories mysql & test
|
||||
|
||||
if test ! -d $ldata; then mkdir $ldata; chmod 700 $ldata ; fi
|
||||
|
Reference in New Issue
Block a user