2009-03-03 21:42:31 -05:00
|
|
|
#!/usr/bin/env perl
|
2021-06-03 02:37:05 -04:00
|
|
|
|
2018-02-23 03:53:12 -05:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2012-06-28 21:39:47 -04:00
|
|
|
#
|
2021-06-03 02:37:05 -04:00
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
#
|
2016-06-27 00:56:38 -04:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
2021-06-03 02:37:05 -04:00
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
2020-09-14 19:50:58 -04:00
|
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 03:53:12 -05:00
|
|
|
#
|
|
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
# information regarding copyright ownership.
|
2009-03-03 21:42:31 -05:00
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
|
use warnings;
|
|
|
|
|
|
2009-09-01 03:14:26 -04:00
|
|
|
my $lines;
|
2009-03-03 21:42:31 -05:00
|
|
|
while (<>) {
|
|
|
|
|
chomp;
|
2010-06-20 03:18:30 -04:00
|
|
|
if (/\/\* .Id:.* \*\//) {
|
2011-01-03 18:45:08 -05:00
|
|
|
next;
|
2010-06-20 03:18:30 -04:00
|
|
|
}
|
2009-03-03 21:42:31 -05:00
|
|
|
s/\"/\\\"/g;
|
|
|
|
|
s/$/\\n\\/;
|
|
|
|
|
$lines .= $_ . "\n";
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-19 03:17:03 -05:00
|
|
|
my $mkey = "#define TRUST_ANCHORS \\\n\t\"\\\n" . $lines . "\"\n";
|
2009-09-01 03:14:26 -04:00
|
|
|
|
2021-06-03 02:37:05 -04:00
|
|
|
print <<END;
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
|
*
|
|
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
* information regarding copyright ownership.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
END
|
|
|
|
|
|
2018-03-20 05:12:37 -04:00
|
|
|
print "#ifndef BIND_KEYS_H\n";
|
|
|
|
|
print "#define BIND_KEYS_H 1\n";
|
2009-09-01 03:14:26 -04:00
|
|
|
print $mkey;
|
2018-03-20 05:12:37 -04:00
|
|
|
print "#endif /* BIND_KEYS_H */\n";
|