summaryrefslogtreecommitdiffstats
path: root/src/windows/build
diff options
context:
space:
mode:
authorKevin Koch <kpkoch@mit.edu>2007-03-31 22:31:33 +0000
committerKevin Koch <kpkoch@mit.edu>2007-03-31 22:31:33 +0000
commitf5732ea410f26fcb2e577604f1b6d431861fa00f (patch)
tree06584c947e4b9ee92b98466eb1f71b1157067493 /src/windows/build
parent2a87ebd7150af2c72c1de90f81c13ffb3c76ab44 (diff)
downloadkrb5-f5732ea410f26fcb2e577604f1b6d431861fa00f.tar.gz
krb5-f5732ea410f26fcb2e577604f1b6d431861fa00f.tar.xz
krb5-f5732ea410f26fcb2e577604f1b6d431861fa00f.zip
Add signing in staging area before building installers
Target_Version: 1.6.1 Ticket: 5490 Tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19368 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/build')
-rw-r--r--src/windows/build/bkw.pl15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/windows/build/bkw.pl b/src/windows/build/bkw.pl
index 5a2f7230cc..55d60dfe86 100644
--- a/src/windows/build/bkw.pl
+++ b/src/windows/build/bkw.pl
@@ -463,18 +463,25 @@ print Dumper($prunes);
# The build results are copied to a staging area, where the packager expects to find them.
# We put the staging area in the fixed area .../pismere/staging.
- my $prepackage = $config->{Stages}->{PrePackage};
- my $staging_area = "$wd\\staging";
+ my $prepackage = $config->{Stages}->{PrePackage};
+ my $staging = "$wd\\staging";
chdir($wd) or die "Fatal -- couldn't chdir to $wd\n";
if ($verbose) {print "Info -- chdir to $wd\n";}
- (-e $staging_area) or mkdir($staging_area);
+ (-e $staging) or mkdir($staging);
# Force Where From and To are relative to:
$prepackage->{CopyList}->{Config}->{From}->{root} = "$wd\\athena";
$prepackage->{CopyList}->{Config}->{To}->{root} = "$wd\\staging";
copyFiles($prepackage->{CopyList}, $config); ## Copy any files [this step takes a while]
- chdir("staging\\install\\wix") or die "Fatal -- Couldn't cd to $wd\\staging\\install\\wix";
+ # Sign files:
+ chdir($staging) or die "Fatal -- couldn't chdir to $staging\n";
+ print "Info -- chdir to ".`cd`."\n" if ($verbose);
+ if ($switches[0]->{sign}->{value}) {
+ signFiles($config->{Stages}->{PostPackage}->{Config}->{Signing}, $config);
+ }
+
+ chdir("$staging\\install\\wix") or die "Fatal -- Couldn't cd to $staging\\install\\wix";
# Correct errors in files.wxi:
!system("sed 's/WorkingDirectory=\"\\[dirbin\\]\"/WorkingDirectory=\"dirbin\"/g' files.wxi > a.tmp") or die "Fatal -- Couldn't modify files.wxi.";
!system("mv a.tmp files.wxi") or die "Fatal -- Couldn't update files.wxi.";