summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/windows/build/BKWconfig.xml9
-rw-r--r--src/windows/build/bkw.pl25
-rw-r--r--src/windows/build/makeZip.pl2
-rw-r--r--src/windows/build/signFiles.pl2
-rw-r--r--src/windows/build/srcfiles.xml13
5 files changed, 19 insertions, 32 deletions
diff --git a/src/windows/build/BKWconfig.xml b/src/windows/build/BKWconfig.xml
index 111aaa6013..37c1a5c43b 100644
--- a/src/windows/build/BKWconfig.xml
+++ b/src/windows/build/BKWconfig.xml
@@ -21,7 +21,7 @@
<clean value="0" />
<nomake value="0" />
<nopackage value="0" />
- <sign value="0" timestampserver="" />
+ <sign value="0" />
<verbose value="0" />
<vverbose value="0" />
</Options>
@@ -144,10 +144,11 @@
<File dummy="foo" />
<!-- File from paths are relative to <src>/pismere. -->
<!-- File to paths are relative to <out>. -->
- <File name="msi-deployment-guide.txt" from="staging\install\wix\" to="" />
- <File name="netidmgr_userdoc.pdf" from="staging\doc" to="." />
- <File name="kfw.msi" from="staging\install\wix\" to="" newname="%filestem%.msi" />
+ <File name="msi-deployment-guide.txt" from="staging\install\wix\" to="" />
+ <File name="netidmgr_userdoc.pdf" from="staging\doc" to="." />
+ <File name="kfw.msi" from="staging\install\wix\" to="" newname="%filestem%.msi" />
<File name="MITKerberosForWindows%-DEBUG%.exe" from="staging\install\nsis" to="" newname="%filestem%%-DEBUG%.exe" />
+ <File name="relnotes.html" from="staging\doc" to="." />
</Files>
</CopyList>
</PostPackage>
diff --git a/src/windows/build/bkw.pl b/src/windows/build/bkw.pl
index 95b7dc12b8..7c25399aa0 100644
--- a/src/windows/build/bkw.pl
+++ b/src/windows/build/bkw.pl
@@ -465,9 +465,11 @@ print Dumper($prunes);
# We put the staging area in the fixed area .../pismere/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) or mkdir($staging);
+ chdir($wd) or die "Fatal -- couldn't chdir to $wd\n";
+ print "Info -- chdir to ".`cd`."\n" if ($verbose);
+ !system("rm -rf $staging/*") or die "Fatal -- Couldn't clean $staging.";
+ !system("rmdir $staging") or die "Fatal -- Couldn't remove $staging.";
+ mkdir($staging) or die "Fatal -- Couldn't create $staging.";
# Force Where From and To are relative to:
$prepackage->{CopyList}->{Config}->{From}->{root} = "$wd\\athena";
@@ -550,22 +552,19 @@ print Dumper($prunes);
# Begin packaging extra items:
chdir($src); # Now in <src>.
print "Info -- chdir to ".`cd`."\n" if ($verbose);
- system("rm -rf $out") if (-d $out);
- die "Fatal -- Couldn't remove $out." if (-d $out);
- mkdir($out);
+ if (-d $out) {!system("rm -rf $out/*") or die "Fatal -- Couldn't clean $out."} ## Clean output directory.
+ else {mkdir($out);}
my $zipsXML = $config->{Stages}->{PostPackage}->{Zips};
local $i = 0;
while ($zipsXML->{Zip}[$i]) {
local $zip = $zipsXML->{Zip}[$i];
- makeZip($zip, $config) if (exists $zip->{name}); ## Ignore dummy entry.
+ makeZip($zip, $config) if (exists $zip->{name}); ## Ignore dummy entry.
+ chdir("$out");
+ print "Info -- chdir to ".`cd`."\n" if ($verbose);
+ system("rm -rf ziptemp") if (-d "ziptemp"); ## Clean up any temp directory.
$i++;
- } ## End zip in xml.
-
- $ziptemp = "$out\\ziptemp"; ## Clean up any temp directory.
- chdir("$out");
- print "Info -- chdir to ".`cd`."\n" if ($verbose);
- system("rm -rf $ziptemp") if (-d $ziptemp);
+ } ## End zip in xml.
$config->{Stages}->{PostPackage}->{CopyList}->{Config} = $config->{Stages}->{PostPackage}->{Config}; ## Use the post package config.
$config->{Stages}->{PostPackage}->{CopyList}->{Config}->{From}->{root} = "$src\\pismere";
diff --git a/src/windows/build/makeZip.pl b/src/windows/build/makeZip.pl
index e54f5a8316..a805b74538 100644
--- a/src/windows/build/makeZip.pl
+++ b/src/windows/build/makeZip.pl
@@ -57,7 +57,7 @@ sub makeZip {
# because the CopyList's Config might contain substitution tags.
$zip->{CopyList}->{Config}->{FileStem}->{name} = $config->{Stages}->{PostPackage}->{Config}->{FileStem}->{name};
$zip->{CopyList}->{Config}->{From}->{root} = "$src\\pismere"; ## Add zip-specific config settings.
- $zip->{CopyList}->{Config}->{To}->{root} = "$ziptemp\\$zip->{topdir}";
+ $zip->{CopyList}->{Config}->{To}->{root} = $ziptemp;
copyFiles($zip->{CopyList}, $config);
# Drop down into <out>/ziptemp so the path to the added file won't include <out>:
chdir $ziptemp;
diff --git a/src/windows/build/signFiles.pl b/src/windows/build/signFiles.pl
index 058eff2a46..d2ffb2c0e3 100644
--- a/src/windows/build/signFiles.pl
+++ b/src/windows/build/signFiles.pl
@@ -18,7 +18,7 @@ sub signFiles {
local $template2 = $template;
$template2 =~ s/%filename%/$target/;
print "Info -- Signing $target\n" if ($verbose);
- !system($template2) or die "Fatal -- Error signing $target.";
+ !system("$template2") or die "Fatal -- Error signing $target.";
}
}
$ENV{PATH} = $savedPATH;
diff --git a/src/windows/build/srcfiles.xml b/src/windows/build/srcfiles.xml
deleted file mode 100644
index 58b58af55e..0000000000
--- a/src/windows/build/srcfiles.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
- <Files>
- <!-- File from paths are relative to <src>/pismere. -->
- <!-- File to paths are relative to <out>. -->
- <File dummy="foo" /> <!-- Forces XML::Simple behavior -->
- <!-- Without this, XML::Simple does not make an anonymous array and I can't figure out how to iterate over it. -->
-
- <File name="config_1033.wxi" from="athena\auth\krb5\src\windows\installer\wix\lang\" to="\install\wix\lang" />
- <File name="strings_1033.wxl" from="athena\auth\krb5\src\windows\installer\wix\lang\" to="\install\wix\lang" />
- <File name="ui_1033.wxi" from="athena\auth\krb5\src\windows\installer\wix\lang\" to="\install\wix\lang" />
- <File name="license.rtf" from="athena\auth\krb5\src\windows\installer\wix\lang\" to="\install\wix\lang" />
- <File name="krb5.conf" from="athena\auth\krb5\src\config-files\" to="\sample" newname="krb5.ini"/>
- </Files> \ No newline at end of file