Commit 14956128 authored by lenz@mysql.com's avatar lenz@mysql.com

Merge lgrimmer@bk-internal.mysql.com:/home/bk/mysql-4.0

into mysql.com:/space/my/mysql-4.0
parents f590fa7c 7a026899
...@@ -34,7 +34,7 @@ GetOptions( ...@@ -34,7 +34,7 @@ GetOptions(
"help|h", "help|h",
"log|l:s", "log|l:s",
"mail|m=s", "mail|m=s",
"skip-dmg", "skip-dmg|skip-disk-image|s",
"suffix=s", "suffix=s",
"verbose|v", "verbose|v",
"version=s", "version=s",
...@@ -74,7 +74,7 @@ $TAR= <$BUILDDIR/$NAME-apple-darwin*-powerpc.tar.gz>; ...@@ -74,7 +74,7 @@ $TAR= <$BUILDDIR/$NAME-apple-darwin*-powerpc.tar.gz>;
$INFO= <$SUPFILEDIR/Info.plist>; $INFO= <$SUPFILEDIR/Info.plist>;
$DESC= <$SUPFILEDIR/Description.plist>; $DESC= <$SUPFILEDIR/Description.plist>;
@RESOURCES= qw/ ReadMe.txt postinstall preinstall /; @RESOURCES= qw/ ReadMe.txt postinstall preinstall /;
@LICENSES= qw{ $SRCBASEDIR/COPYING $SRCBASEDIR/MySQLEULA.txt }; @LICENSES= ("$SRCBASEDIR/COPYING","$SRCBASEDIR/MySQLEULA.txt");
&print_help("") if ($opt_help || !$opt_suffix || !$opt_version); &print_help("") if ($opt_help || !$opt_suffix || !$opt_version);
...@@ -125,12 +125,14 @@ foreach $resfile (@RESOURCES) ...@@ -125,12 +125,14 @@ foreach $resfile (@RESOURCES)
# Search for license file # Search for license file
foreach $license (@LICENSES) foreach $license (@LICENSES)
{ {
last if (-f "$license") if (-f "$license")
{
$command= "cp $license $RESOURCE_DIR/License.txt";
&run_command($command, "Error while copying $license to $RESOURCE_DIR");
}
} }
&abort("Could not find a license file!") unless (-f "$license"); &abort("Could not find a license file!") unless (-f "$RESOURCE_DIR/License.txt");
$command= "cp $license $RESOURCE_DIR/License.txt";
&run_command($command, "Error while copying $license to $RESOURCE_DIR");
# Extract the binary tarball and create the "mysql" symlink # Extract the binary tarball and create the "mysql" symlink
&logger("Extracting $TAR to $PKGROOT"); &logger("Extracting $TAR to $PKGROOT");
...@@ -228,7 +230,7 @@ Options: ...@@ -228,7 +230,7 @@ Options:
is enabled) is enabled)
Note that the \@-Sign needs to be quoted! Note that the \@-Sign needs to be quoted!
Example: --mail=user\\\@domain.com Example: --mail=user\\\@domain.com
--skip-dmg Just build the PKG, don't put it into a -s, --skip-disk-image Just build the PKG, don't put it into a
disk image afterwards disk image afterwards
--suffix=<suffix> The package suffix (e.g. "-standard" or "-pro) --suffix=<suffix> The package suffix (e.g. "-standard" or "-pro)
--version=<version> The MySQL version number (e.g. 4.0.11-gamma) --version=<version> The MySQL version number (e.g. 4.0.11-gamma)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment