In this commit we split the setting of the sites.conf into two
branches depending on the value of privkey($site). The path prefix
is common - only the leafname varies.
Right now there isn't actually any change because both branches use
the same sites.conf. The new-style arrangement needs a new-style
sites file which isn't there yet.
So no functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
"
switch -glob $privkey {
*/ {
+ set sitesconf sites.conf
append cfg "
key-cache priv-cache({
privkeys \"$builddir/${privkey}priv.\";
"
}
* {
+ set sitesconf sites.conf
append cfg "
local-key rsa-private(\"$builddir/$privkey\");
"
}
}
+ set sitesconf $builddir/test-example/$sitesconf
append cfg $extra($site)
append cfg "
file delete -force $pubkeys
exec cp -rl $builddir/test-example/pubkeys $pubkeys
- set f [open $builddir/test-example/sites.conf r]
+ set f [open $sitesconf r]
while {[gets $f l] >= 0} {
regsub {\"[^\"]*test-example/pubkeys/} $l "\"$pubkeys/" l
append cfg $l "\n"