Use a PACKAGE_MSI environment variable to control whether or not the script

continues execution.  If this is not set to 1, the script will exit without
attempting to create the MSI.
This commit is contained in:
cltbld 2004-12-23 21:29:41 +00:00
parent 4a8f49d742
commit 99ef4f06a7
2 changed files with 18 additions and 0 deletions

View File

@ -11,6 +11,15 @@ if (!$win32) {
die "ERROR: MSI installers can currently only be made on Windows platforms\n";
}
#--------------------------------------------------------------------------
# If $ENV{PACKAGE_MSI} is not true, exit.
#--------------------------------------------------------------------------
if (!exists($ENV{PACKAGE_MSI}) or !defined($ENV{PACKAGE_MSI}) or ($ENV{PACKAGE_MSI} ne 1) ) {
printf("make-msi.pl: PACKAGE_MSI environment variable is not true.. exiting.\n");
exit;
}
#--------------------------------------------------------------------------
# Find the MakeMSI mm.cmd program.
#--------------------------------------------------------------------------

View File

@ -11,6 +11,15 @@ if (!$win32) {
die "ERROR: MSI installers can currently only be made on Windows platforms\n";
}
#--------------------------------------------------------------------------
# If $ENV{PACKAGE_MSI} is not true, exit.
#--------------------------------------------------------------------------
if (!exists($ENV{PACKAGE_MSI}) or !defined($ENV{PACKAGE_MSI}) or ($ENV{PACKAGE_MSI} ne 1) ) {
printf("make-msi.pl: PACKAGE_MSI environment variable is not true.. exiting.\n");
exit;
}
#--------------------------------------------------------------------------
# Find the MakeMSI mm.cmd program.
#--------------------------------------------------------------------------