Skip to content

Commit

Permalink
tools: output include guards in mk-ca-bundle.pl
Browse files Browse the repository at this point in the history
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: #7363
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
  • Loading branch information
bnoordhuis authored and Fishrock123 committed Jun 27, 2016
1 parent 59f9127 commit 92913a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/mk-ca-bundle.pl
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ (%)
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;
Expand Down Expand Up @@ -310,6 +311,7 @@ (%)
}
}
}
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 ) {
Expand Down

0 comments on commit 92913a0

Please sign in to comment.