mariadb/scripts/make_win_src_distribution.sh

539 lines
10 KiB
Bash
Raw Normal View History

#!/bin/sh
# Terminate loudly on error, we don't want partial package
set -e
trap "echo '*** script failed ***'" 0
#
# Script to create a Windows src package
#
version=@VERSION@
CP="cp -p"
DEBUG=0
SILENT=0
SUFFIX=""
DIRNAME=""
OUTTAR="0"
OUTZIP="0"
#
# An "abort" function taking a variable number of strings (one per line)
#
abort()
{
for line
do
echo "$line"
done
exit 1
}
#
# This script must run from MySQL top directory
#
if [ ! -f scripts/make_win_src_distribution ]; then
abort "ERROR : You must run this script from the MySQL top-level directory"
fi
SOURCE=`pwd`
#
# Check for source compilation/configuration
#
if [ ! -f sql/sql_yacc.cc ]; then
abort "ERROR : Sorry, you must run this script after the complete build," \
" hope you know what you are trying to do !!"
fi
#
# Debug print of the status
#
print_debug()
{
for statement
do
if [ "$DEBUG" = "1" ] ; then
echo $statement
fi
done
}
#
# Usage of the script
#
show_usage()
{
echo "MySQL utility script to create a Windows src package, and it takes"
echo "the following arguments:"
echo ""
echo " --debug Debug, without creating the package"
echo " --tmp Specify the temporary location"
echo " --suffix Suffix name for the package"
echo " --dirname Directory name to copy files (intermediate)"
echo " --silent Show no progress information"
echo " --tar Create tar.gz package"
echo " --zip Create zip package"
echo " --help Show this help message"
exit 0
}
#
# Parse the input arguments
#
parse_arguments() {
for arg do
case "$arg" in
--add-tar) ADDTAR=1 ;;
--debug) DEBUG=1;;
--tmp=*) TMP=`echo "$arg" | sed -e "s;--tmp=;;"` ;;
--suffix=*) SUFFIX=`echo "$arg" | sed -e "s;--suffix=;;"` ;;
--dirname=*) DIRNAME=`echo "$arg" | sed -e "s;--dirname=;;"` ;;
--silent) SILENT=1 ;;
--tar) OUTTAR=1 ;;
--zip) OUTZIP=1 ;;
--help) show_usage ;;
*) abort "Unknown argument '$arg'"
;;
esac
done
}
parse_arguments "$@"
#
# Assign the tmp directory if it was set from the environment variables
#
for i in $TMP $TMPDIR $TEMPDIR $TEMP /tmp
do
if [ "$i" ]; then
print_debug "Setting TMP to '$i'"
TMP=$i
break
fi
done
#
# Convert argument file from unix to DOS text
#
Remove 3.23 InstallShield files, improve make_win_src_distribution, add extra myTest.dsp to be copied into distributions as a fix for BUG#999 BitKeeper/deleted/.del-.fgl~c7d07ad3164a2b48: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/.fgl BitKeeper/deleted/.del-Clients and Tools.fgl~cfedc4432bdca9d: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Clients and Tools.fgl BitKeeper/deleted/.del-Default.cdf~aa4045acaf293d36: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/Default.cdf BitKeeper/deleted/.del-Default.fdf~89b2af9ae5059f62: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Default.fdf BitKeeper/deleted/.del-Default.fgl~46b97f4278325e8: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Default.fgl BitKeeper/deleted/.del-Default.fgl~b9558db492415763: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/Default.fgl BitKeeper/deleted/.del-Development.fgl~8207e98594fe0bee: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Development.fgl BitKeeper/deleted/.del-Documentation.fgl~dbd86cfa42705734: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Documentation.fgl BitKeeper/deleted/.del-Grant Tables.fgl~1c366d3557e024bf: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Grant Tables.fgl BitKeeper/deleted/.del-Default.rge~d816fd8cef3f06d5: Delete: VC++Files/InstallShield/3.23.XX-gpl/Registry Entries/Default.rge BitKeeper/deleted/.del-MySQL 3.23.XX-GPL.ipr~3116ab4aa52a6b44: Delete: VC++Files/InstallShield/3.23.XX-gpl/MySQL 3.23.XX-GPL.ipr BitKeeper/deleted/.del-Servers.fgl~c809b9515fd51041: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Servers.fgl BitKeeper/deleted/.del-Setup.dbg~f8ba4a87c5dd90a9: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.dbg BitKeeper/deleted/.del-Setup.ino~cb1fefacb45841a: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.ino BitKeeper/deleted/.del-Setup.ins~6946c5065a12572d: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.ins BitKeeper/deleted/.del-Setup.obs~33bf58c825ff3ac8: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.obs BitKeeper/deleted/.del-Setup.rul~8cc4dee41dcb733f: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.rul BitKeeper/deleted/.del-Build.tsb~43a1c0d54abb5a44: Delete: VC++Files/InstallShield/3.23.XX-gpl/Text Substitutions/Build.tsb BitKeeper/deleted/.del-Default.shl~4bc5f71f8f0bd822: Delete: VC++Files/InstallShield/3.23.XX-gpl/Shell Objects/Default.shl BitKeeper/deleted/.del-Default.shl~8b61f648197f5de3: Delete: VC++Files/InstallShield/3.23.XX-gpl/String Tables/Default.shl BitKeeper/deleted/.del-SETUP.BMP~1e85725234603bfe: Delete: VC++Files/InstallShield/3.23.XX-gpl/Setup Files/Uncompressed Files/Language Independent/OS Independent/SETUP.BMP BitKeeper/deleted/.del-Setup.tsb~5344bdc39c0e9884: Delete: VC++Files/InstallShield/3.23.XX-gpl/Text Substitutions/Setup.tsb BitKeeper/deleted/.del-infolist.txt~58b203247936d266: Delete: VC++Files/InstallShield/3.23.XX-gpl/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt BitKeeper/deleted/.del-value.shl~98c2851db96b919e: Delete: VC++Files/InstallShield/3.23.XX-gpl/String Tables/0009-English/value.shl BitKeeper/deleted/.del-.fgl~cac6624e1ac6ee1d: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/.fgl BitKeeper/deleted/.del-Clients and Tools.fgl~826a8e3f651af365: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Clients and Tools.fgl BitKeeper/deleted/.del-Default.cdf~1da6505528200d5e: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/Default.cdf BitKeeper/deleted/.del-Default.fdf~466762fdf65e1477: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Default.fdf BitKeeper/deleted/.del-Default.fgl~45b9e847fa4da131: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/Default.fgl BitKeeper/deleted/.del-Default.fgl~a86ce70180b5aba4: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Default.fgl BitKeeper/deleted/.del-Development.fgl~ca1458874a3fef81: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Development.fgl BitKeeper/deleted/.del-Default.rge~2218627c2a901409: Delete: VC++Files/InstallShield/3.23.XXcom/Registry Entries/Default.rge BitKeeper/deleted/.del-Documentation.fgl~cf0ac866737a5c7d: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Documentation.fgl BitKeeper/deleted/.del-Grant Tables.fgl~31e527d126c42d90: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Grant Tables.fgl BitKeeper/deleted/.del-MySQL 3.23.com.ipr~eb817edea43c6e6e: Delete: VC++Files/InstallShield/3.23.XXcom/MySQL 3.23.com.ipr BitKeeper/deleted/.del-Servers.fgl~36147accb82f759: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Servers.fgl BitKeeper/deleted/.del-Setup.dbg~688e9d3ec362ec34: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.dbg BitKeeper/deleted/.del-Setup.ino~85f07a856a69a722: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.ino BitKeeper/deleted/.del-Default.shl~a02a9093c2b6b0d9: Delete: VC++Files/InstallShield/3.23.XXcom/Shell Objects/Default.shl BitKeeper/deleted/.del-SETUP.BMP~77e20d86bceb4903: Delete: VC++Files/InstallShield/3.23.XXcom/Setup Files/Uncompressed Files/Language Independent/OS Independent/SETUP.BMP BitKeeper/deleted/.del-Setup.ins~ab68efc133d8411e: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.ins BitKeeper/deleted/.del-Setup.obs~2f09140119879bc6: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.obs BitKeeper/deleted/.del-Setup.rul~14510a994d515f19: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.rul BitKeeper/deleted/.del-infolist.txt~ee370f4771c83a97: Delete: VC++Files/InstallShield/3.23.XXcom/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt BitKeeper/deleted/.del-Build.tsb~f3be7d512e6d5b74: Delete: VC++Files/InstallShield/3.23.XXcom/Text Substitutions/Build.tsb BitKeeper/deleted/.del-Default.shl~e18d3f10bef97a28: Delete: VC++Files/InstallShield/3.23.XXcom/String Tables/Default.shl BitKeeper/deleted/.del-Setup.tsb~e74dbc7688d4019a: Delete: VC++Files/InstallShield/3.23.XXcom/Text Substitutions/Setup.tsb BitKeeper/deleted/.del-value.shl~718b5b291d5ff04d: Delete: VC++Files/InstallShield/3.23.XXcom/String Tables/0009-English/value.shl BitKeeper/etc/ignore: Added hardcopy.0 to the ignore list VC++Files/InstallShield/4.0.XX-classic/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-classic/String Tables/0009-English/value.shl: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-gpl/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-gpl/String Tables/0009-English/value.shl: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-pro/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-pro/String Tables/0009-English/value.shl: Add VERSION tags for automation scripts/make_win_src_distribution.sh: Improved unix to DOS conversion, add processing of version tags in InstallShield files
2003-09-15 23:39:50 +02:00
unix_to_dos()
{
for arg do
print_debug "Replacing LF -> CRLF from '$arg'"
awk '{sub(/$/,"\r");print}' < $arg > $arg.tmp
Remove 3.23 InstallShield files, improve make_win_src_distribution, add extra myTest.dsp to be copied into distributions as a fix for BUG#999 BitKeeper/deleted/.del-.fgl~c7d07ad3164a2b48: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/.fgl BitKeeper/deleted/.del-Clients and Tools.fgl~cfedc4432bdca9d: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Clients and Tools.fgl BitKeeper/deleted/.del-Default.cdf~aa4045acaf293d36: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/Default.cdf BitKeeper/deleted/.del-Default.fdf~89b2af9ae5059f62: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Default.fdf BitKeeper/deleted/.del-Default.fgl~46b97f4278325e8: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Default.fgl BitKeeper/deleted/.del-Default.fgl~b9558db492415763: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/Default.fgl BitKeeper/deleted/.del-Development.fgl~8207e98594fe0bee: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Development.fgl BitKeeper/deleted/.del-Documentation.fgl~dbd86cfa42705734: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Documentation.fgl BitKeeper/deleted/.del-Grant Tables.fgl~1c366d3557e024bf: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Grant Tables.fgl BitKeeper/deleted/.del-Default.rge~d816fd8cef3f06d5: Delete: VC++Files/InstallShield/3.23.XX-gpl/Registry Entries/Default.rge BitKeeper/deleted/.del-MySQL 3.23.XX-GPL.ipr~3116ab4aa52a6b44: Delete: VC++Files/InstallShield/3.23.XX-gpl/MySQL 3.23.XX-GPL.ipr BitKeeper/deleted/.del-Servers.fgl~c809b9515fd51041: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Servers.fgl BitKeeper/deleted/.del-Setup.dbg~f8ba4a87c5dd90a9: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.dbg BitKeeper/deleted/.del-Setup.ino~cb1fefacb45841a: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.ino BitKeeper/deleted/.del-Setup.ins~6946c5065a12572d: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.ins BitKeeper/deleted/.del-Setup.obs~33bf58c825ff3ac8: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.obs BitKeeper/deleted/.del-Setup.rul~8cc4dee41dcb733f: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.rul BitKeeper/deleted/.del-Build.tsb~43a1c0d54abb5a44: Delete: VC++Files/InstallShield/3.23.XX-gpl/Text Substitutions/Build.tsb BitKeeper/deleted/.del-Default.shl~4bc5f71f8f0bd822: Delete: VC++Files/InstallShield/3.23.XX-gpl/Shell Objects/Default.shl BitKeeper/deleted/.del-Default.shl~8b61f648197f5de3: Delete: VC++Files/InstallShield/3.23.XX-gpl/String Tables/Default.shl BitKeeper/deleted/.del-SETUP.BMP~1e85725234603bfe: Delete: VC++Files/InstallShield/3.23.XX-gpl/Setup Files/Uncompressed Files/Language Independent/OS Independent/SETUP.BMP BitKeeper/deleted/.del-Setup.tsb~5344bdc39c0e9884: Delete: VC++Files/InstallShield/3.23.XX-gpl/Text Substitutions/Setup.tsb BitKeeper/deleted/.del-infolist.txt~58b203247936d266: Delete: VC++Files/InstallShield/3.23.XX-gpl/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt BitKeeper/deleted/.del-value.shl~98c2851db96b919e: Delete: VC++Files/InstallShield/3.23.XX-gpl/String Tables/0009-English/value.shl BitKeeper/deleted/.del-.fgl~cac6624e1ac6ee1d: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/.fgl BitKeeper/deleted/.del-Clients and Tools.fgl~826a8e3f651af365: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Clients and Tools.fgl BitKeeper/deleted/.del-Default.cdf~1da6505528200d5e: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/Default.cdf BitKeeper/deleted/.del-Default.fdf~466762fdf65e1477: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Default.fdf BitKeeper/deleted/.del-Default.fgl~45b9e847fa4da131: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/Default.fgl BitKeeper/deleted/.del-Default.fgl~a86ce70180b5aba4: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Default.fgl BitKeeper/deleted/.del-Development.fgl~ca1458874a3fef81: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Development.fgl BitKeeper/deleted/.del-Default.rge~2218627c2a901409: Delete: VC++Files/InstallShield/3.23.XXcom/Registry Entries/Default.rge BitKeeper/deleted/.del-Documentation.fgl~cf0ac866737a5c7d: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Documentation.fgl BitKeeper/deleted/.del-Grant Tables.fgl~31e527d126c42d90: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Grant Tables.fgl BitKeeper/deleted/.del-MySQL 3.23.com.ipr~eb817edea43c6e6e: Delete: VC++Files/InstallShield/3.23.XXcom/MySQL 3.23.com.ipr BitKeeper/deleted/.del-Servers.fgl~36147accb82f759: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Servers.fgl BitKeeper/deleted/.del-Setup.dbg~688e9d3ec362ec34: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.dbg BitKeeper/deleted/.del-Setup.ino~85f07a856a69a722: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.ino BitKeeper/deleted/.del-Default.shl~a02a9093c2b6b0d9: Delete: VC++Files/InstallShield/3.23.XXcom/Shell Objects/Default.shl BitKeeper/deleted/.del-SETUP.BMP~77e20d86bceb4903: Delete: VC++Files/InstallShield/3.23.XXcom/Setup Files/Uncompressed Files/Language Independent/OS Independent/SETUP.BMP BitKeeper/deleted/.del-Setup.ins~ab68efc133d8411e: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.ins BitKeeper/deleted/.del-Setup.obs~2f09140119879bc6: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.obs BitKeeper/deleted/.del-Setup.rul~14510a994d515f19: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.rul BitKeeper/deleted/.del-infolist.txt~ee370f4771c83a97: Delete: VC++Files/InstallShield/3.23.XXcom/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt BitKeeper/deleted/.del-Build.tsb~f3be7d512e6d5b74: Delete: VC++Files/InstallShield/3.23.XXcom/Text Substitutions/Build.tsb BitKeeper/deleted/.del-Default.shl~e18d3f10bef97a28: Delete: VC++Files/InstallShield/3.23.XXcom/String Tables/Default.shl BitKeeper/deleted/.del-Setup.tsb~e74dbc7688d4019a: Delete: VC++Files/InstallShield/3.23.XXcom/Text Substitutions/Setup.tsb BitKeeper/deleted/.del-value.shl~718b5b291d5ff04d: Delete: VC++Files/InstallShield/3.23.XXcom/String Tables/0009-English/value.shl BitKeeper/etc/ignore: Added hardcopy.0 to the ignore list VC++Files/InstallShield/4.0.XX-classic/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-classic/String Tables/0009-English/value.shl: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-gpl/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-gpl/String Tables/0009-English/value.shl: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-pro/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-pro/String Tables/0009-English/value.shl: Add VERSION tags for automation scripts/make_win_src_distribution.sh: Improved unix to DOS conversion, add processing of version tags in InstallShield files
2003-09-15 23:39:50 +02:00
rm -f $arg
mv $arg.tmp $arg
done
}
#
# Create a tmp dest directory to copy files
#
BASE=$TMP/my_win_dist$SUFFIX.$$
trap "rm -r -f $BASE; echo '*** interrupted ***'; exit 1" 1 2 3 13 15
if [ -d $BASE ] ; then
echo "WARNING: Destination directory '$BASE' already exists, deleting it"
rm -r -f $BASE
fi
$CP -r $SOURCE/VC++Files $BASE
# This includes an implicit 'mkdir $BASE' !
Remove 3.23 InstallShield files, improve make_win_src_distribution, add extra myTest.dsp to be copied into distributions as a fix for BUG#999 BitKeeper/deleted/.del-.fgl~c7d07ad3164a2b48: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/.fgl BitKeeper/deleted/.del-Clients and Tools.fgl~cfedc4432bdca9d: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Clients and Tools.fgl BitKeeper/deleted/.del-Default.cdf~aa4045acaf293d36: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/Default.cdf BitKeeper/deleted/.del-Default.fdf~89b2af9ae5059f62: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Default.fdf BitKeeper/deleted/.del-Default.fgl~46b97f4278325e8: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Default.fgl BitKeeper/deleted/.del-Default.fgl~b9558db492415763: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/Default.fgl BitKeeper/deleted/.del-Development.fgl~8207e98594fe0bee: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Development.fgl BitKeeper/deleted/.del-Documentation.fgl~dbd86cfa42705734: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Documentation.fgl BitKeeper/deleted/.del-Grant Tables.fgl~1c366d3557e024bf: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Grant Tables.fgl BitKeeper/deleted/.del-Default.rge~d816fd8cef3f06d5: Delete: VC++Files/InstallShield/3.23.XX-gpl/Registry Entries/Default.rge BitKeeper/deleted/.del-MySQL 3.23.XX-GPL.ipr~3116ab4aa52a6b44: Delete: VC++Files/InstallShield/3.23.XX-gpl/MySQL 3.23.XX-GPL.ipr BitKeeper/deleted/.del-Servers.fgl~c809b9515fd51041: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Servers.fgl BitKeeper/deleted/.del-Setup.dbg~f8ba4a87c5dd90a9: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.dbg BitKeeper/deleted/.del-Setup.ino~cb1fefacb45841a: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.ino BitKeeper/deleted/.del-Setup.ins~6946c5065a12572d: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.ins BitKeeper/deleted/.del-Setup.obs~33bf58c825ff3ac8: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.obs BitKeeper/deleted/.del-Setup.rul~8cc4dee41dcb733f: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.rul BitKeeper/deleted/.del-Build.tsb~43a1c0d54abb5a44: Delete: VC++Files/InstallShield/3.23.XX-gpl/Text Substitutions/Build.tsb BitKeeper/deleted/.del-Default.shl~4bc5f71f8f0bd822: Delete: VC++Files/InstallShield/3.23.XX-gpl/Shell Objects/Default.shl BitKeeper/deleted/.del-Default.shl~8b61f648197f5de3: Delete: VC++Files/InstallShield/3.23.XX-gpl/String Tables/Default.shl BitKeeper/deleted/.del-SETUP.BMP~1e85725234603bfe: Delete: VC++Files/InstallShield/3.23.XX-gpl/Setup Files/Uncompressed Files/Language Independent/OS Independent/SETUP.BMP BitKeeper/deleted/.del-Setup.tsb~5344bdc39c0e9884: Delete: VC++Files/InstallShield/3.23.XX-gpl/Text Substitutions/Setup.tsb BitKeeper/deleted/.del-infolist.txt~58b203247936d266: Delete: VC++Files/InstallShield/3.23.XX-gpl/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt BitKeeper/deleted/.del-value.shl~98c2851db96b919e: Delete: VC++Files/InstallShield/3.23.XX-gpl/String Tables/0009-English/value.shl BitKeeper/deleted/.del-.fgl~cac6624e1ac6ee1d: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/.fgl BitKeeper/deleted/.del-Clients and Tools.fgl~826a8e3f651af365: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Clients and Tools.fgl BitKeeper/deleted/.del-Default.cdf~1da6505528200d5e: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/Default.cdf BitKeeper/deleted/.del-Default.fdf~466762fdf65e1477: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Default.fdf BitKeeper/deleted/.del-Default.fgl~45b9e847fa4da131: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/Default.fgl BitKeeper/deleted/.del-Default.fgl~a86ce70180b5aba4: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Default.fgl BitKeeper/deleted/.del-Development.fgl~ca1458874a3fef81: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Development.fgl BitKeeper/deleted/.del-Default.rge~2218627c2a901409: Delete: VC++Files/InstallShield/3.23.XXcom/Registry Entries/Default.rge BitKeeper/deleted/.del-Documentation.fgl~cf0ac866737a5c7d: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Documentation.fgl BitKeeper/deleted/.del-Grant Tables.fgl~31e527d126c42d90: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Grant Tables.fgl BitKeeper/deleted/.del-MySQL 3.23.com.ipr~eb817edea43c6e6e: Delete: VC++Files/InstallShield/3.23.XXcom/MySQL 3.23.com.ipr BitKeeper/deleted/.del-Servers.fgl~36147accb82f759: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Servers.fgl BitKeeper/deleted/.del-Setup.dbg~688e9d3ec362ec34: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.dbg BitKeeper/deleted/.del-Setup.ino~85f07a856a69a722: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.ino BitKeeper/deleted/.del-Default.shl~a02a9093c2b6b0d9: Delete: VC++Files/InstallShield/3.23.XXcom/Shell Objects/Default.shl BitKeeper/deleted/.del-SETUP.BMP~77e20d86bceb4903: Delete: VC++Files/InstallShield/3.23.XXcom/Setup Files/Uncompressed Files/Language Independent/OS Independent/SETUP.BMP BitKeeper/deleted/.del-Setup.ins~ab68efc133d8411e: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.ins BitKeeper/deleted/.del-Setup.obs~2f09140119879bc6: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.obs BitKeeper/deleted/.del-Setup.rul~14510a994d515f19: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.rul BitKeeper/deleted/.del-infolist.txt~ee370f4771c83a97: Delete: VC++Files/InstallShield/3.23.XXcom/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt BitKeeper/deleted/.del-Build.tsb~f3be7d512e6d5b74: Delete: VC++Files/InstallShield/3.23.XXcom/Text Substitutions/Build.tsb BitKeeper/deleted/.del-Default.shl~e18d3f10bef97a28: Delete: VC++Files/InstallShield/3.23.XXcom/String Tables/Default.shl BitKeeper/deleted/.del-Setup.tsb~e74dbc7688d4019a: Delete: VC++Files/InstallShield/3.23.XXcom/Text Substitutions/Setup.tsb BitKeeper/deleted/.del-value.shl~718b5b291d5ff04d: Delete: VC++Files/InstallShield/3.23.XXcom/String Tables/0009-English/value.shl BitKeeper/etc/ignore: Added hardcopy.0 to the ignore list VC++Files/InstallShield/4.0.XX-classic/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-classic/String Tables/0009-English/value.shl: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-gpl/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-gpl/String Tables/0009-English/value.shl: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-pro/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-pro/String Tables/0009-English/value.shl: Add VERSION tags for automation scripts/make_win_src_distribution.sh: Improved unix to DOS conversion, add processing of version tags in InstallShield files
2003-09-15 23:39:50 +02:00
#
# Process version tags in InstallShield files
#
vreplace()
{
for arg do
unix_to_dos $arg
cat $arg | sed -e 's!@''VERSION''@!@VERSION@!' > $arg.tmp
rm -f $arg
mv $arg.tmp $arg
done
}
if test -d $BASE/InstallShield
then
for d in 4.1.XX-gpl 4.1.XX-pro 4.1.XX-classic
do
cd $BASE/InstallShield/$d/String\ Tables/0009-English
vreplace value.shl
cd ../../Setup\ Files/Compressed\ Files/Language\ Independent/OS\ Independent
vreplace infolist.txt
done
fi
Remove 3.23 InstallShield files, improve make_win_src_distribution, add extra myTest.dsp to be copied into distributions as a fix for BUG#999 BitKeeper/deleted/.del-.fgl~c7d07ad3164a2b48: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/.fgl BitKeeper/deleted/.del-Clients and Tools.fgl~cfedc4432bdca9d: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Clients and Tools.fgl BitKeeper/deleted/.del-Default.cdf~aa4045acaf293d36: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/Default.cdf BitKeeper/deleted/.del-Default.fdf~89b2af9ae5059f62: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Default.fdf BitKeeper/deleted/.del-Default.fgl~46b97f4278325e8: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Default.fgl BitKeeper/deleted/.del-Default.fgl~b9558db492415763: Delete: VC++Files/InstallShield/3.23.XX-gpl/Component Definitions/Default.fgl BitKeeper/deleted/.del-Development.fgl~8207e98594fe0bee: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Development.fgl BitKeeper/deleted/.del-Documentation.fgl~dbd86cfa42705734: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Documentation.fgl BitKeeper/deleted/.del-Grant Tables.fgl~1c366d3557e024bf: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Grant Tables.fgl BitKeeper/deleted/.del-Default.rge~d816fd8cef3f06d5: Delete: VC++Files/InstallShield/3.23.XX-gpl/Registry Entries/Default.rge BitKeeper/deleted/.del-MySQL 3.23.XX-GPL.ipr~3116ab4aa52a6b44: Delete: VC++Files/InstallShield/3.23.XX-gpl/MySQL 3.23.XX-GPL.ipr BitKeeper/deleted/.del-Servers.fgl~c809b9515fd51041: Delete: VC++Files/InstallShield/3.23.XX-gpl/File Groups/Servers.fgl BitKeeper/deleted/.del-Setup.dbg~f8ba4a87c5dd90a9: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.dbg BitKeeper/deleted/.del-Setup.ino~cb1fefacb45841a: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.ino BitKeeper/deleted/.del-Setup.ins~6946c5065a12572d: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.ins BitKeeper/deleted/.del-Setup.obs~33bf58c825ff3ac8: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.obs BitKeeper/deleted/.del-Setup.rul~8cc4dee41dcb733f: Delete: VC++Files/InstallShield/3.23.XX-gpl/Script Files/Setup.rul BitKeeper/deleted/.del-Build.tsb~43a1c0d54abb5a44: Delete: VC++Files/InstallShield/3.23.XX-gpl/Text Substitutions/Build.tsb BitKeeper/deleted/.del-Default.shl~4bc5f71f8f0bd822: Delete: VC++Files/InstallShield/3.23.XX-gpl/Shell Objects/Default.shl BitKeeper/deleted/.del-Default.shl~8b61f648197f5de3: Delete: VC++Files/InstallShield/3.23.XX-gpl/String Tables/Default.shl BitKeeper/deleted/.del-SETUP.BMP~1e85725234603bfe: Delete: VC++Files/InstallShield/3.23.XX-gpl/Setup Files/Uncompressed Files/Language Independent/OS Independent/SETUP.BMP BitKeeper/deleted/.del-Setup.tsb~5344bdc39c0e9884: Delete: VC++Files/InstallShield/3.23.XX-gpl/Text Substitutions/Setup.tsb BitKeeper/deleted/.del-infolist.txt~58b203247936d266: Delete: VC++Files/InstallShield/3.23.XX-gpl/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt BitKeeper/deleted/.del-value.shl~98c2851db96b919e: Delete: VC++Files/InstallShield/3.23.XX-gpl/String Tables/0009-English/value.shl BitKeeper/deleted/.del-.fgl~cac6624e1ac6ee1d: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/.fgl BitKeeper/deleted/.del-Clients and Tools.fgl~826a8e3f651af365: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Clients and Tools.fgl BitKeeper/deleted/.del-Default.cdf~1da6505528200d5e: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/Default.cdf BitKeeper/deleted/.del-Default.fdf~466762fdf65e1477: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Default.fdf BitKeeper/deleted/.del-Default.fgl~45b9e847fa4da131: Delete: VC++Files/InstallShield/3.23.XXcom/Component Definitions/Default.fgl BitKeeper/deleted/.del-Default.fgl~a86ce70180b5aba4: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Default.fgl BitKeeper/deleted/.del-Development.fgl~ca1458874a3fef81: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Development.fgl BitKeeper/deleted/.del-Default.rge~2218627c2a901409: Delete: VC++Files/InstallShield/3.23.XXcom/Registry Entries/Default.rge BitKeeper/deleted/.del-Documentation.fgl~cf0ac866737a5c7d: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Documentation.fgl BitKeeper/deleted/.del-Grant Tables.fgl~31e527d126c42d90: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Grant Tables.fgl BitKeeper/deleted/.del-MySQL 3.23.com.ipr~eb817edea43c6e6e: Delete: VC++Files/InstallShield/3.23.XXcom/MySQL 3.23.com.ipr BitKeeper/deleted/.del-Servers.fgl~36147accb82f759: Delete: VC++Files/InstallShield/3.23.XXcom/File Groups/Servers.fgl BitKeeper/deleted/.del-Setup.dbg~688e9d3ec362ec34: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.dbg BitKeeper/deleted/.del-Setup.ino~85f07a856a69a722: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.ino BitKeeper/deleted/.del-Default.shl~a02a9093c2b6b0d9: Delete: VC++Files/InstallShield/3.23.XXcom/Shell Objects/Default.shl BitKeeper/deleted/.del-SETUP.BMP~77e20d86bceb4903: Delete: VC++Files/InstallShield/3.23.XXcom/Setup Files/Uncompressed Files/Language Independent/OS Independent/SETUP.BMP BitKeeper/deleted/.del-Setup.ins~ab68efc133d8411e: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.ins BitKeeper/deleted/.del-Setup.obs~2f09140119879bc6: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.obs BitKeeper/deleted/.del-Setup.rul~14510a994d515f19: Delete: VC++Files/InstallShield/3.23.XXcom/Script Files/Setup.rul BitKeeper/deleted/.del-infolist.txt~ee370f4771c83a97: Delete: VC++Files/InstallShield/3.23.XXcom/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt BitKeeper/deleted/.del-Build.tsb~f3be7d512e6d5b74: Delete: VC++Files/InstallShield/3.23.XXcom/Text Substitutions/Build.tsb BitKeeper/deleted/.del-Default.shl~e18d3f10bef97a28: Delete: VC++Files/InstallShield/3.23.XXcom/String Tables/Default.shl BitKeeper/deleted/.del-Setup.tsb~e74dbc7688d4019a: Delete: VC++Files/InstallShield/3.23.XXcom/Text Substitutions/Setup.tsb BitKeeper/deleted/.del-value.shl~718b5b291d5ff04d: Delete: VC++Files/InstallShield/3.23.XXcom/String Tables/0009-English/value.shl BitKeeper/etc/ignore: Added hardcopy.0 to the ignore list VC++Files/InstallShield/4.0.XX-classic/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-classic/String Tables/0009-English/value.shl: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-gpl/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-gpl/String Tables/0009-English/value.shl: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-pro/Setup Files/Compressed Files/Language Independent/OS Independent/infolist.txt: Add VERSION tags for automation VC++Files/InstallShield/4.0.XX-pro/String Tables/0009-English/value.shl: Add VERSION tags for automation scripts/make_win_src_distribution.sh: Improved unix to DOS conversion, add processing of version tags in InstallShield files
2003-09-15 23:39:50 +02:00
#
# Move all error message files to root directory
#
$CP -r $SOURCE/sql/share $BASE/
rm -r -f "$BASE/share/Makefile"
rm -r -f "$BASE/share/Makefile.in"
rm -r -f "$BASE/share/Makefile.am"
mkdir $BASE/Docs $BASE/extra $BASE/include
#
# Copy directory files
#
copy_dir_files()
{
for arg do
print_debug "Copying files from directory '$arg'"
cd $SOURCE/$arg
if [ ! -d $BASE/$arg ]; then
print_debug "Creating directory '$arg'"
mkdir $BASE/$arg
fi
for i in *.c *.cpp *.h *.ih *.i *.ic *.asm *.def *.hpp *.yy \
Many files: New VC7 project files des_key_file.cc: Visual C++ wants '"' for local include mysql.cc: Cast my_cgets() argument for VC6 and VC7 dummy.cpp: Added to convince VS .Net generate a lib for mysqlserver VC++Files/mysqlserver/dummy.cpp: Added to convince VS .Net generate a lib for mysqlserver VC++Files/bdb/bdb.vcproj: New VC7 project files VC++Files/client/mysql.vcproj: New VC7 project files VC++Files/client/mysqladmin.vcproj: New VC7 project files VC++Files/client/mysqlclient.vcproj: New VC7 project files VC++Files/client/mysqldump.vcproj: New VC7 project files VC++Files/client/mysqlimport.vcproj: New VC7 project files VC++Files/client/mysqlshow.vcproj: New VC7 project files VC++Files/client/mysqltest.vcproj: New VC7 project files VC++Files/comp_err/comp_err.vcproj: New VC7 project files VC++Files/dbug/dbug.vcproj: New VC7 project files VC++Files/heap/heap.vcproj: New VC7 project files VC++Files/innobase/innobase.vcproj: New VC7 project files VC++Files/libmysql/libmysql.vcproj: New VC7 project files VC++Files/libmysqld/examples/test_libmysqld.vcproj: New VC7 project files VC++Files/libmysqld/libmysqld.vcproj: New VC7 project files VC++Files/libmysqltest/myTest.vcproj: New VC7 project files VC++Files/my_print_defaults/my_print_defaults.vcproj: New VC7 project files VC++Files/myisam/myisam.vcproj: New VC7 project files VC++Files/myisam_ftdump/myisam_ftdump.vcproj: New VC7 project files VC++Files/myisamchk/myisamchk.vcproj: New VC7 project files VC++Files/myisamlog/myisamlog.vcproj: New VC7 project files VC++Files/myisammrg/myisammrg.vcproj: New VC7 project files VC++Files/myisampack/myisampack.vcproj: New VC7 project files VC++Files/mysql-test/mysql_test_run_new.vcproj: New VC7 project files VC++Files/mysql.sln: New VC7 project files VC++Files/mysqlbinlog/mysqlbinlog.vcproj: New VC7 project files VC++Files/mysqlcheck/mysqlcheck.vcproj: New VC7 project files VC++Files/mysqldemb/mysqldemb.vcproj: New VC7 project files VC++Files/mysqlserver/mysqlserver.vcproj: New VC7 project files VC++Files/mysys/mysys.vcproj: New VC7 project files VC++Files/perror/perror.vcproj: New VC7 project files VC++Files/regex/regex.vcproj: New VC7 project files VC++Files/replace/replace.vcproj: New VC7 project files VC++Files/sql/mysqld.vcproj: New VC7 project files VC++Files/strings/strings.vcproj: New VC7 project files VC++Files/test1/test1.vcproj: New VC7 project files VC++Files/tests/mysql_client_test.vcproj: New VC7 project files VC++Files/thr_test/thr_test.vcproj: New VC7 project files VC++Files/vio/vio.vcproj: New VC7 project files VC++Files/zlib/zlib.vcproj: New VC7 project files client/mysql.cc: Cast my_cgets() argument for VC6 and VC7 sql/des_key_file.cc: Visual C++ wants '"' for local include scripts/make_win_src_distribution.sh: New VC7 project files
2005-09-30 14:03:55 +02:00
README INSTALL* LICENSE AUTHORS NEWS ChangeLog \
*.inc *.test *.result *.pem Moscow_leap des_key_file \
*.vcproj *.sln *.dat *.000001 *.require *.opt *.cnf
do
if [ -f $i ]
then
$CP $SOURCE/$arg/$i $BASE/$arg/$i
fi
done
for i in *.cc
do
if [ -f $i ]
then
i=`echo $i | sed 's/.cc$//g'`
$CP $SOURCE/$arg/$i.cc $BASE/$arg/$i.cpp
fi
done
done
}
#
# Copy directory contents recursively
#
copy_dir_dirs() {
for arg do
cd $SOURCE
(
find $arg -type d \
-and -not -path \*SCCS\* \
-and -not -path \*.deps\* \
Many files: New VC7 project files des_key_file.cc: Visual C++ wants '"' for local include mysql.cc: Cast my_cgets() argument for VC6 and VC7 dummy.cpp: Added to convince VS .Net generate a lib for mysqlserver VC++Files/mysqlserver/dummy.cpp: Added to convince VS .Net generate a lib for mysqlserver VC++Files/bdb/bdb.vcproj: New VC7 project files VC++Files/client/mysql.vcproj: New VC7 project files VC++Files/client/mysqladmin.vcproj: New VC7 project files VC++Files/client/mysqlclient.vcproj: New VC7 project files VC++Files/client/mysqldump.vcproj: New VC7 project files VC++Files/client/mysqlimport.vcproj: New VC7 project files VC++Files/client/mysqlshow.vcproj: New VC7 project files VC++Files/client/mysqltest.vcproj: New VC7 project files VC++Files/comp_err/comp_err.vcproj: New VC7 project files VC++Files/dbug/dbug.vcproj: New VC7 project files VC++Files/heap/heap.vcproj: New VC7 project files VC++Files/innobase/innobase.vcproj: New VC7 project files VC++Files/libmysql/libmysql.vcproj: New VC7 project files VC++Files/libmysqld/examples/test_libmysqld.vcproj: New VC7 project files VC++Files/libmysqld/libmysqld.vcproj: New VC7 project files VC++Files/libmysqltest/myTest.vcproj: New VC7 project files VC++Files/my_print_defaults/my_print_defaults.vcproj: New VC7 project files VC++Files/myisam/myisam.vcproj: New VC7 project files VC++Files/myisam_ftdump/myisam_ftdump.vcproj: New VC7 project files VC++Files/myisamchk/myisamchk.vcproj: New VC7 project files VC++Files/myisamlog/myisamlog.vcproj: New VC7 project files VC++Files/myisammrg/myisammrg.vcproj: New VC7 project files VC++Files/myisampack/myisampack.vcproj: New VC7 project files VC++Files/mysql-test/mysql_test_run_new.vcproj: New VC7 project files VC++Files/mysql.sln: New VC7 project files VC++Files/mysqlbinlog/mysqlbinlog.vcproj: New VC7 project files VC++Files/mysqlcheck/mysqlcheck.vcproj: New VC7 project files VC++Files/mysqldemb/mysqldemb.vcproj: New VC7 project files VC++Files/mysqlserver/mysqlserver.vcproj: New VC7 project files VC++Files/mysys/mysys.vcproj: New VC7 project files VC++Files/perror/perror.vcproj: New VC7 project files VC++Files/regex/regex.vcproj: New VC7 project files VC++Files/replace/replace.vcproj: New VC7 project files VC++Files/sql/mysqld.vcproj: New VC7 project files VC++Files/strings/strings.vcproj: New VC7 project files VC++Files/test1/test1.vcproj: New VC7 project files VC++Files/tests/mysql_client_test.vcproj: New VC7 project files VC++Files/thr_test/thr_test.vcproj: New VC7 project files VC++Files/vio/vio.vcproj: New VC7 project files VC++Files/zlib/zlib.vcproj: New VC7 project files client/mysql.cc: Cast my_cgets() argument for VC6 and VC7 sql/des_key_file.cc: Visual C++ wants '"' for local include scripts/make_win_src_distribution.sh: New VC7 project files
2005-09-30 14:03:55 +02:00
-and -not -path \*.libs\* \
-and -not -path \*autom4te.cache -print
)|(
while read v
do
copy_dir_files $v
done
)
done
}
#
# Input directories to be copied
#
for i in client dbug extra heap include isam \
libmysql libmysqld merge myisam \
myisammrg mysys regex sql strings sql-common sql/examples \
tools vio zlib
do
copy_dir_files $i
done
#
# Create project files for ndb
#
make -C $SOURCE/ndb windoze || true
#
# Input directories to be copied recursively
#
for i in bdb innobase ndb
do
copy_dir_dirs $i
done
#
# Create dummy innobase configure header
#
if [ -f $BASE/innobase/ib_config.h ]; then
rm -f $BASE/innobase/ib_config.h
fi
touch $BASE/innobase/ib_config.h
#
# Copy miscellaneous files
#
cd $SOURCE
for i in COPYING ChangeLog README EXCEPTIONS-CLIENT\
INSTALL-SOURCE INSTALL-WIN \
INSTALL-WIN-SOURCE \
Docs/INSTALL-BINARY Docs/manual.chm
do
print_debug "Copying file '$i'"
if [ -f $i ]
then
$CP $i $BASE/$i
fi
done
#
# support files
#
mkdir $BASE/support-files
# Rename the cnf files to <file>.ini
for i in support-files/*.cnf
do
i=`echo $i | sed 's/.cnf$//g'`
cp $i.cnf $BASE/$i.ini
done
#
# Raw dirs from source tree
#
for i in scripts sql-bench mysql-test SSL tests
do
print_debug "Copying directory '$i'"
if [ -d $i ]
then
if [ -d $BASE/$i ]
then
$CP -R $i $BASE
else
$CP -R $i $BASE/$i
fi
fi
Many files: New VC7 project files des_key_file.cc: Visual C++ wants '"' for local include mysql.cc: Cast my_cgets() argument for VC6 and VC7 dummy.cpp: Added to convince VS .Net generate a lib for mysqlserver VC++Files/mysqlserver/dummy.cpp: Added to convince VS .Net generate a lib for mysqlserver VC++Files/bdb/bdb.vcproj: New VC7 project files VC++Files/client/mysql.vcproj: New VC7 project files VC++Files/client/mysqladmin.vcproj: New VC7 project files VC++Files/client/mysqlclient.vcproj: New VC7 project files VC++Files/client/mysqldump.vcproj: New VC7 project files VC++Files/client/mysqlimport.vcproj: New VC7 project files VC++Files/client/mysqlshow.vcproj: New VC7 project files VC++Files/client/mysqltest.vcproj: New VC7 project files VC++Files/comp_err/comp_err.vcproj: New VC7 project files VC++Files/dbug/dbug.vcproj: New VC7 project files VC++Files/heap/heap.vcproj: New VC7 project files VC++Files/innobase/innobase.vcproj: New VC7 project files VC++Files/libmysql/libmysql.vcproj: New VC7 project files VC++Files/libmysqld/examples/test_libmysqld.vcproj: New VC7 project files VC++Files/libmysqld/libmysqld.vcproj: New VC7 project files VC++Files/libmysqltest/myTest.vcproj: New VC7 project files VC++Files/my_print_defaults/my_print_defaults.vcproj: New VC7 project files VC++Files/myisam/myisam.vcproj: New VC7 project files VC++Files/myisam_ftdump/myisam_ftdump.vcproj: New VC7 project files VC++Files/myisamchk/myisamchk.vcproj: New VC7 project files VC++Files/myisamlog/myisamlog.vcproj: New VC7 project files VC++Files/myisammrg/myisammrg.vcproj: New VC7 project files VC++Files/myisampack/myisampack.vcproj: New VC7 project files VC++Files/mysql-test/mysql_test_run_new.vcproj: New VC7 project files VC++Files/mysql.sln: New VC7 project files VC++Files/mysqlbinlog/mysqlbinlog.vcproj: New VC7 project files VC++Files/mysqlcheck/mysqlcheck.vcproj: New VC7 project files VC++Files/mysqldemb/mysqldemb.vcproj: New VC7 project files VC++Files/mysqlserver/mysqlserver.vcproj: New VC7 project files VC++Files/mysys/mysys.vcproj: New VC7 project files VC++Files/perror/perror.vcproj: New VC7 project files VC++Files/regex/regex.vcproj: New VC7 project files VC++Files/replace/replace.vcproj: New VC7 project files VC++Files/sql/mysqld.vcproj: New VC7 project files VC++Files/strings/strings.vcproj: New VC7 project files VC++Files/test1/test1.vcproj: New VC7 project files VC++Files/tests/mysql_client_test.vcproj: New VC7 project files VC++Files/thr_test/thr_test.vcproj: New VC7 project files VC++Files/vio/vio.vcproj: New VC7 project files VC++Files/zlib/zlib.vcproj: New VC7 project files client/mysql.cc: Cast my_cgets() argument for VC6 and VC7 sql/des_key_file.cc: Visual C++ wants '"' for local include scripts/make_win_src_distribution.sh: New VC7 project files
2005-09-30 14:03:55 +02:00
# But remove object files from destination
find $BASE/$i -type f -name \*.o | xargs rm -f
done
#
# Fix some windows files to avoid compiler warnings
#
if [ -x extra/replace ] ; then
./extra/replace std:: "" < $BASE/sql/sql_yacc.cpp | \
sed '/^ *switch (yytype)$/ { N; /\n *{$/ { N; /\n *default:$/ { N; /\n *break;$/ { N; /\n *}$/ d; };};};} ' \
> $BASE/sql/sql_yacc.cpp-new
mv $BASE/sql/sql_yacc.cpp-new $BASE/sql/sql_yacc.cpp
else
if [ "$SILENT" = "0" ] ; then
echo 'WARNING: "extra/replace" not built, can not filter "sql_yacc.ccp"'
echo 'WARNING: to reduce the number of warnings when building'
fi
fi
#
# Search the tree for plain text files and adapt the line end marker
#
find $BASE \( -name "*.cnf" -o -name "*.ini" \
Many files: New VC7 project files des_key_file.cc: Visual C++ wants '"' for local include mysql.cc: Cast my_cgets() argument for VC6 and VC7 dummy.cpp: Added to convince VS .Net generate a lib for mysqlserver VC++Files/mysqlserver/dummy.cpp: Added to convince VS .Net generate a lib for mysqlserver VC++Files/bdb/bdb.vcproj: New VC7 project files VC++Files/client/mysql.vcproj: New VC7 project files VC++Files/client/mysqladmin.vcproj: New VC7 project files VC++Files/client/mysqlclient.vcproj: New VC7 project files VC++Files/client/mysqldump.vcproj: New VC7 project files VC++Files/client/mysqlimport.vcproj: New VC7 project files VC++Files/client/mysqlshow.vcproj: New VC7 project files VC++Files/client/mysqltest.vcproj: New VC7 project files VC++Files/comp_err/comp_err.vcproj: New VC7 project files VC++Files/dbug/dbug.vcproj: New VC7 project files VC++Files/heap/heap.vcproj: New VC7 project files VC++Files/innobase/innobase.vcproj: New VC7 project files VC++Files/libmysql/libmysql.vcproj: New VC7 project files VC++Files/libmysqld/examples/test_libmysqld.vcproj: New VC7 project files VC++Files/libmysqld/libmysqld.vcproj: New VC7 project files VC++Files/libmysqltest/myTest.vcproj: New VC7 project files VC++Files/my_print_defaults/my_print_defaults.vcproj: New VC7 project files VC++Files/myisam/myisam.vcproj: New VC7 project files VC++Files/myisam_ftdump/myisam_ftdump.vcproj: New VC7 project files VC++Files/myisamchk/myisamchk.vcproj: New VC7 project files VC++Files/myisamlog/myisamlog.vcproj: New VC7 project files VC++Files/myisammrg/myisammrg.vcproj: New VC7 project files VC++Files/myisampack/myisampack.vcproj: New VC7 project files VC++Files/mysql-test/mysql_test_run_new.vcproj: New VC7 project files VC++Files/mysql.sln: New VC7 project files VC++Files/mysqlbinlog/mysqlbinlog.vcproj: New VC7 project files VC++Files/mysqlcheck/mysqlcheck.vcproj: New VC7 project files VC++Files/mysqldemb/mysqldemb.vcproj: New VC7 project files VC++Files/mysqlserver/mysqlserver.vcproj: New VC7 project files VC++Files/mysys/mysys.vcproj: New VC7 project files VC++Files/perror/perror.vcproj: New VC7 project files VC++Files/regex/regex.vcproj: New VC7 project files VC++Files/replace/replace.vcproj: New VC7 project files VC++Files/sql/mysqld.vcproj: New VC7 project files VC++Files/strings/strings.vcproj: New VC7 project files VC++Files/test1/test1.vcproj: New VC7 project files VC++Files/tests/mysql_client_test.vcproj: New VC7 project files VC++Files/thr_test/thr_test.vcproj: New VC7 project files VC++Files/vio/vio.vcproj: New VC7 project files VC++Files/zlib/zlib.vcproj: New VC7 project files client/mysql.cc: Cast my_cgets() argument for VC6 and VC7 sql/des_key_file.cc: Visual C++ wants '"' for local include scripts/make_win_src_distribution.sh: New VC7 project files
2005-09-30 14:03:55 +02:00
-o -name COPYING -o -name ChangeLog -o -name EXCEPTIONS-CLIENT \
-o -name "INSTALL*" -o -name LICENSE -o -name "README*" \
-o -name "*.dsp" -o -name "*.dsw" \
Many files: New VC7 project files des_key_file.cc: Visual C++ wants '"' for local include mysql.cc: Cast my_cgets() argument for VC6 and VC7 dummy.cpp: Added to convince VS .Net generate a lib for mysqlserver VC++Files/mysqlserver/dummy.cpp: Added to convince VS .Net generate a lib for mysqlserver VC++Files/bdb/bdb.vcproj: New VC7 project files VC++Files/client/mysql.vcproj: New VC7 project files VC++Files/client/mysqladmin.vcproj: New VC7 project files VC++Files/client/mysqlclient.vcproj: New VC7 project files VC++Files/client/mysqldump.vcproj: New VC7 project files VC++Files/client/mysqlimport.vcproj: New VC7 project files VC++Files/client/mysqlshow.vcproj: New VC7 project files VC++Files/client/mysqltest.vcproj: New VC7 project files VC++Files/comp_err/comp_err.vcproj: New VC7 project files VC++Files/dbug/dbug.vcproj: New VC7 project files VC++Files/heap/heap.vcproj: New VC7 project files VC++Files/innobase/innobase.vcproj: New VC7 project files VC++Files/libmysql/libmysql.vcproj: New VC7 project files VC++Files/libmysqld/examples/test_libmysqld.vcproj: New VC7 project files VC++Files/libmysqld/libmysqld.vcproj: New VC7 project files VC++Files/libmysqltest/myTest.vcproj: New VC7 project files VC++Files/my_print_defaults/my_print_defaults.vcproj: New VC7 project files VC++Files/myisam/myisam.vcproj: New VC7 project files VC++Files/myisam_ftdump/myisam_ftdump.vcproj: New VC7 project files VC++Files/myisamchk/myisamchk.vcproj: New VC7 project files VC++Files/myisamlog/myisamlog.vcproj: New VC7 project files VC++Files/myisammrg/myisammrg.vcproj: New VC7 project files VC++Files/myisampack/myisampack.vcproj: New VC7 project files VC++Files/mysql-test/mysql_test_run_new.vcproj: New VC7 project files VC++Files/mysql.sln: New VC7 project files VC++Files/mysqlbinlog/mysqlbinlog.vcproj: New VC7 project files VC++Files/mysqlcheck/mysqlcheck.vcproj: New VC7 project files VC++Files/mysqldemb/mysqldemb.vcproj: New VC7 project files VC++Files/mysqlserver/mysqlserver.vcproj: New VC7 project files VC++Files/mysys/mysys.vcproj: New VC7 project files VC++Files/perror/perror.vcproj: New VC7 project files VC++Files/regex/regex.vcproj: New VC7 project files VC++Files/replace/replace.vcproj: New VC7 project files VC++Files/sql/mysqld.vcproj: New VC7 project files VC++Files/strings/strings.vcproj: New VC7 project files VC++Files/test1/test1.vcproj: New VC7 project files VC++Files/tests/mysql_client_test.vcproj: New VC7 project files VC++Files/thr_test/thr_test.vcproj: New VC7 project files VC++Files/vio/vio.vcproj: New VC7 project files VC++Files/zlib/zlib.vcproj: New VC7 project files client/mysql.cc: Cast my_cgets() argument for VC6 and VC7 sql/des_key_file.cc: Visual C++ wants '"' for local include scripts/make_win_src_distribution.sh: New VC7 project files
2005-09-30 14:03:55 +02:00
-o -name "*.vcproj" -o -name "*.sln" \) -type f -print \
| while read v
do
unix_to_dos $v
done
mv $BASE/README $BASE/README.txt
Portability fixes for Windows VC++Files/client/mysqlclient.dsp: Update for windows VC++Files/libmysql/libmysql.dsp: Update for windows VC++Files/strings/strings.dsp: Update for windows libmysqld/lib_sql.cc: Update for windows scripts/make_win_src_distribution.sh: Update for windows scripts/mysql_install_db.sh: Update for windows sql/mysqld.cc: Remove not used variable sql/set_var.cc: Indentation cleanups sql/share/czech/errmsg.txt: Fixed wrong delimiters sql/share/danish/errmsg.txt: Fixed wrong delimiters sql/share/dutch/errmsg.txt: Fixed wrong delimiters sql/share/english/errmsg.txt: Fixed wrong delimiters sql/share/estonian/errmsg.txt: Fixed wrong delimiters sql/share/french/errmsg.txt: Fixed wrong delimiters sql/share/greek/errmsg.txt: Fixed wrong delimiters sql/share/hungarian/errmsg.txt: Fixed wrong delimiters sql/share/italian/errmsg.txt: Fixed wrong delimiters sql/share/japanese/errmsg.txt: Fixed wrong delimiters sql/share/korean/errmsg.txt: Fixed wrong delimiters sql/share/norwegian-ny/errmsg.txt: Fixed wrong delimiters sql/share/norwegian/errmsg.txt: Fixed wrong delimiters sql/share/polish/errmsg.txt: Fixed wrong delimiters sql/share/portuguese/errmsg.txt: Fixed wrong delimiters sql/share/romanian/errmsg.txt: Fixed wrong delimiters sql/share/russian/errmsg.txt: Fixed wrong delimiters sql/share/serbian/errmsg.txt: Fixed wrong delimiters sql/share/slovak/errmsg.txt: Fixed wrong delimiters sql/share/spanish/errmsg.txt: Fixed wrong delimiters sql/share/swedish/errmsg.txt: Fixed wrong delimiters sql/share/ukrainian/errmsg.txt: Fixed wrong delimiters sql/sql_acl.cc: Removed compiler warnings strings/ctype-big5.c: Removed compiler warnings (VC++) strings/ctype-euc_kr.c: Removed compiler warnings (VC++) strings/ctype-gb2312.c: Removed compiler warnings (VC++) strings/ctype-gbk.c: Removed compiler warnings (VC++) strings/ctype-sjis.c: Removed compiler warnings (VC++) strings/ctype-ucs2.c: Removed compiler warnings (VC++) strings/ctype-ujis.c: Removed compiler warnings (VC++)
2003-12-08 11:25:37 +01:00
#
# Clean up if we did this from a bk tree
#
find $BASE -type d \( -name SCCS -o -name .deps -o -name .libs \) -print0 | \
xargs -0 rm -r -f
rm -r -f "$BASE/mysql-test/var"
Portability fixes for Windows VC++Files/client/mysqlclient.dsp: Update for windows VC++Files/libmysql/libmysql.dsp: Update for windows VC++Files/strings/strings.dsp: Update for windows libmysqld/lib_sql.cc: Update for windows scripts/make_win_src_distribution.sh: Update for windows scripts/mysql_install_db.sh: Update for windows sql/mysqld.cc: Remove not used variable sql/set_var.cc: Indentation cleanups sql/share/czech/errmsg.txt: Fixed wrong delimiters sql/share/danish/errmsg.txt: Fixed wrong delimiters sql/share/dutch/errmsg.txt: Fixed wrong delimiters sql/share/english/errmsg.txt: Fixed wrong delimiters sql/share/estonian/errmsg.txt: Fixed wrong delimiters sql/share/french/errmsg.txt: Fixed wrong delimiters sql/share/greek/errmsg.txt: Fixed wrong delimiters sql/share/hungarian/errmsg.txt: Fixed wrong delimiters sql/share/italian/errmsg.txt: Fixed wrong delimiters sql/share/japanese/errmsg.txt: Fixed wrong delimiters sql/share/korean/errmsg.txt: Fixed wrong delimiters sql/share/norwegian-ny/errmsg.txt: Fixed wrong delimiters sql/share/norwegian/errmsg.txt: Fixed wrong delimiters sql/share/polish/errmsg.txt: Fixed wrong delimiters sql/share/portuguese/errmsg.txt: Fixed wrong delimiters sql/share/romanian/errmsg.txt: Fixed wrong delimiters sql/share/russian/errmsg.txt: Fixed wrong delimiters sql/share/serbian/errmsg.txt: Fixed wrong delimiters sql/share/slovak/errmsg.txt: Fixed wrong delimiters sql/share/spanish/errmsg.txt: Fixed wrong delimiters sql/share/swedish/errmsg.txt: Fixed wrong delimiters sql/share/ukrainian/errmsg.txt: Fixed wrong delimiters sql/sql_acl.cc: Removed compiler warnings strings/ctype-big5.c: Removed compiler warnings (VC++) strings/ctype-euc_kr.c: Removed compiler warnings (VC++) strings/ctype-gb2312.c: Removed compiler warnings (VC++) strings/ctype-gbk.c: Removed compiler warnings (VC++) strings/ctype-sjis.c: Removed compiler warnings (VC++) strings/ctype-ucs2.c: Removed compiler warnings (VC++) strings/ctype-ujis.c: Removed compiler warnings (VC++)
2003-12-08 11:25:37 +01:00
#
# Initialize the initial data directory
#
if [ ! -f scripts/mysql_install_db ] ; then
if [ "$SILENT" = "0" ] ; then
echo 'WARNING: "scripts/mysql_install_db" is not built, can not initiate databases'
fi
elif [ ! -f extra/my_print_defaults ]; then
if [ "$SILENT" = "0" ] ; then
echo 'WARNING: "extra/my_print_defaults" is not built, can not initiate databases'
fi
else
print_debug "Initializing the 'data' directory"
scripts/mysql_install_db --no-defaults --windows --datadir=$BASE/data
Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' Ensured that all projects compile Removed compiler warnings Better setting of server_version variable. Fix that make_win_src_distribution creates the privilege tables. VC++Files/bdb/bdb.dsp: Small, automatic changes VC++Files/client/mysql.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/client/mysqladmin.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/client/mysqlclient.dsp: Removed files that should only be used with mysql command line client VC++Files/client/mysqldump.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/client/mysqlimport.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/client/mysqlshow.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/comp_err/comp_err.dsp: Automatic changes VC++Files/dbug/dbug.dsp: Automatic changes VC++Files/heap/heap.dsp: automatic changes VC++Files/innobase/innobase.dsp: Automatic changes VC++Files/isam/isam.dsp: Automatic changes VC++Files/isamchk/isamchk.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/libmysql/libmysql.dsp: Automatic changes VC++Files/libmysqld/examples/test_libmysqld.dsp: Add missing files VC++Files/libmysqld/libmysqld.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/libmysqltest/myTest.dsp: Automatic changes VC++Files/merge/merge.dsp: Automatic changes VC++Files/my_print_defaults/my_print_defaults.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/myisam/myisam.dsp: automatic changes VC++Files/myisam_ftdump/myisam_ftdump.dsp: automatic changes VC++Files/myisamchk/myisamchk.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/myisamlog/myisamlog.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/myisammrg/myisammrg.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/myisampack/myisampack.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/mysql.dsw: Automatic changes VC++Files/mysqlbinlog/mysqlbinlog.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/mysqlcheck/mysqlcheck.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/mysqldemb/mysqldemb.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/mysqlserver/mysqlserver.dsp: Automatic changes VC++Files/mysqlshutdown/mysqlshutdown.dsp: Automatic changes VC++Files/mysqlwatch/mysqlwatch.dsp: Automatic changes VC++Files/mysys/mysys.dsp: Automatic changes VC++Files/pack_isam/pack_isam.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/perror/perror.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/regex/regex.dsp: Automatic changes VC++Files/replace/replace.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/sql/mysqld.dsp: Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' VC++Files/strings/strings.dsp: Removed duplicate code for strnlen VC++Files/test1/test1.dsp: Automatic changes VC++Files/thr_test/thr_test.dsp: Automatic changes VC++Files/vio/vio.dsp: Automatic changes VC++Files/zlib/contrib/asm386/zlibvc.dsp: Automatic changes VC++Files/zlib/zlib.dsp: Automatic changes extra/my_print_defaults.c: Fixed bug in --verbose include/m_string.h: Portability fix include/mysql_embed.h: Better setting of server_version variable include/mysql_version.h.in: Better license text handling innobase/pars/pars0lex.l: Remove compiler warnings innobase/trx/trx0sys.c: Remove compiler warnings libmysqld/lib_sql.cc: Better setting of server_version variable libmysqld/libmysqld.def: Add functions needed for mysql command line client myisam/myisam_ftdump.c: Remove compiler warnings mysys/sha1.c: Remove compiler warnings scripts/make_win_src_distribution.sh: Safety fix scripts/mysql_install_db.sh: Backport from 4.1 to allow make_win_src_distribution create the privilege tables sql/Makefile.am: Add new file mysqld_suffix.h Remove not used file sql_olap.h sql/ha_innodb.cc: Remove not used variable sql/mysqld.cc: Better setting of server_version variable sql/set_var.cc: Fixed bug when showing lower_case_file_system strings/ctype-tis620.c: Remove compiler warnings
2004-05-19 15:38:12 +02:00
if test "$?" = 1
then
exit 1;
fi
fi
#
# Specify the distribution package name and copy it
#
if test -z $DIRNAME
then
NEW_DIR_NAME=mysql@MYSQL_SERVER_SUFFIX@-$version$SUFFIX
else
NEW_DIR_NAME=$DIRNAME
fi
NEW_NAME=$NEW_DIR_NAME-win-src
BASE2=$TMP/$NEW_DIR_NAME
rm -r -f $BASE2
mv $BASE $BASE2
BASE=$BASE2
#
# If debugging, don't create a zip/tar/gz
#
if [ "$DEBUG" = "1" ] ; then
echo "Please check the distribution files from $BASE"
echo "Exiting (without creating the package).."
exit
fi
#
# This is needed to prefere gnu tar instead of tar because tar can't
# always handle long filenames
#
PATH_DIRS=`echo $PATH | sed -e 's/^:/. /' -e 's/:$/ ./' -e 's/::/ . /g' -e 's/:/ /g' `
which_1 ()
{
for cmd
do
for d in $PATH_DIRS
do
for file in $d/$cmd
do
if test -x $file -a ! -d $file
then
echo $file
exit 0
fi
done
done
done
exit 1
}
#
# Create the result zip/tar file
#
if [ "$OUTTAR" = "0" ]; then
if [ "$OUTZIP" = "0" ]; then
OUTZIP=1
fi
fi
set_tarzip_options()
{
for arg
do
if [ "$arg" = "tar" ]; then
ZIPFILE1=gnutar
ZIPFILE2=gtar
OPT=cf
EXT=".tar"
NEED_COMPRESS=1
else
ZIPFILE1=zip
ZIPFILE2=""
OPT="-r -q"
EXT=".zip"
NEED_COMPRESS=0
fi
done
}
#
# Create the archive
#
create_archive()
{
print_debug "Using $tar to create archive"
cd $TMP
rm -f $SOURCE/$NEW_NAME$EXT
$tar $OPT $SOURCE/$NEW_NAME$EXT $NEW_DIR_NAME
cd $SOURCE
if [ "$NEED_COMPRESS" = "1" ]
then
print_debug "Compressing archive"
gzip -9 $NEW_NAME$EXT
EXT="$EXT.gz"
fi
if [ "$SILENT" = "0" ] ; then
echo "$NEW_NAME$EXT created successfully !!"
fi
}
if [ "$OUTTAR" = "1" ]; then
set_tarzip_options 'tar'
tar=`which_1 $ZIPFILE1 $ZIPFILE2`
if test "$?" = "1" -o "$tar" = ""
then
print_debug "Search failed for '$ZIPFILE1', '$ZIPFILE2', using default 'tar'"
tar=tar
set_tarzip_options 'tar'
fi
create_archive
fi
if [ "$OUTZIP" = "1" ]; then
set_tarzip_options 'zip'
tar=`which_1 $ZIPFILE1 $ZIPFILE2`
if test "$?" = "1" -o "$tar" = ""
then
echo "Search failed for '$ZIPFILE1', '$ZIPFILE2', cannot create zip!"
fi
create_archive
fi
print_debug "Removing temporary directory"
rm -r -f $BASE
# No need to report anything if we got here
trap "" 0
# End of script