Add a note at the start of the output reminding the reader that it's a generated...
authorKen Raeburn <raeburn@mit.edu>
Wed, 4 Jul 2007 05:57:30 +0000 (05:57 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 4 Jul 2007 05:57:30 +0000 (05:57 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19674 dc483132-0cff-0310-8789-dd5450dbe970

src/util/ktemplate.pm

index f5f9ab7db13e64bfb5a2aa90a2ad8d8861c39a91..a2f51680a57ed8c5dffc33074f3f7eea9ccae896 100644 (file)
@@ -57,6 +57,13 @@ sub run {
        print STDERR "$0: No output file specified.\n";
        &usage;
     }
+    print OUTFILE "/*\n";
+    print OUTFILE " * This file is generated, please don't edit it.\n";
+    print OUTFILE " * script: $0\n";
+    print OUTFILE " * args:\n *\t", join("\n *\t", @ARGV), "\n";
+    print OUTFILE " * The rest of this file is copied from a template, with\n";
+    print OUTFILE " * substitutions.  See the template for copyright info.\n";
+    print OUTFILE " */\n";
     while (<DATA>) {
        print OUTFILE &do_substitution($_);
     }