summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-06-22 12:11:46 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2016-06-23 09:25:30 +0200
commitd02d0b9478f3c3b7947b8b5e8f38abb7df314493 (patch)
tree5d5894e935c4d191ed28b293438cc3fb1104340c
parent44981f2a36dab1b7ec7089698fba58bf65ef1025 (diff)
downloadnode-new-d02d0b9478f3c3b7947b8b5e8f38abb7df314493.tar.gz
tools: output include guards in mk-ca-bundle.pl
Commit eff96d3 ("src: add include guards to internal headers") adds include guards. Update tools/mk-ca-bundle.pl to output them when generating src/node_root_certs.h. PR-URL: https://github.com/nodejs/node/pull/7363 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
-rwxr-xr-xtools/mk-ca-bundle.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mk-ca-bundle.pl b/tools/mk-ca-bundle.pl
index 5ea3b937e3..30301fff9a 100755
--- a/tools/mk-ca-bundle.pl
+++ b/tools/mk-ca-bundle.pl
@@ -203,6 +203,7 @@ my $skipnum = 0;
my $start_of_cert = 0;
open(TXT,"$txt") or die "Couldn't open $txt: $!\n";
+print CRT "#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS\n";
while (<TXT>) {
if (/\*\*\*\*\* BEGIN LICENSE BLOCK \*\*\*\*\*/) {
print CRT;
@@ -310,6 +311,7 @@ while (<TXT>) {
}
}
}
+print CRT "#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS\n";
close(TXT) or die "Couldn't close $txt: $!\n";
close(CRT) or die "Couldn't close $crt.~: $!\n";
unless( $stdout ) {