]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
report bind.keys and bindkeys.pl versions in output
authorMark Andrews <marka@isc.org>
Sun, 20 Jun 2010 07:36:02 +0000 (07:36 +0000)
committerMark Andrews <marka@isc.org>
Sun, 20 Jun 2010 07:36:02 +0000 (07:36 +0000)
bin/named/bindkeys.pl

index 3ab3ec9818f0ec71e19964677c84ae7f00360a7d..594ab4ebfa06e873f944aca26b95efd59e0cab74 100755 (executable)
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: bindkeys.pl,v 1.3 2009/09/01 07:14:25 each Exp $
+# $Id: bindkeys.pl,v 1.3.104.1 2010/06/20 07:36:02 marka Exp $
 
 use strict;
 use warnings;
 
+my $rev = '$Id: bindkeys.pl,v 1.3.104.1 2010/06/20 07:36:02 marka Exp $';
+$rev =~ s/\$//g;
+$rev =~ s/,v//g;
+$rev =~ s/Id: //;
+
+my $keys = "";
+
 my $lines;
 while (<>) {
     chomp;
+    if (/\/\* .Id:.* \*\//) {
+       $keys = $_;
+        next;
+    }
     s/\"/\\\"/g;
     s/$/\\n\\/;
     $lines .= $_ . "\n";
 }
 
+$keys =~ s/\$//g;
+$keys =~ s/\/\* Id: //;
+$keys =~ s/\*\/.*//;
+$keys =~ s/,v//;
+
+print "/*\n * Generated by $rev \n * From $keys\n */\n";
+
 my $mkey = '#define MANAGED_KEYS "\\' . "\n" . $lines . "\"\n";
 
 $lines =~ s/managed-keys/trusted-keys/;