]> xenbits.xensource.com Git - libvirt.git/commitdiff
Record the where the auto-generated data comes from
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 8 Aug 2013 11:26:17 +0000 (12:26 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 9 Aug 2013 16:13:02 +0000 (17:13 +0100)
The gendispatch.pl script puts comments at the top of files
it creates, saying that it auto-generated them. Also include
the name of the source data file which it reads when doing
the auto-generation.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/rpc/gendispatch.pl

index ac0c7ab52ea2c28043fe207db96b6e4d95a4639a..ceb1ad874611f3a5d6d69123a8b143d5f42a096c 100755 (executable)
@@ -348,19 +348,19 @@ sub hyper_to_long
 
 if ($mode eq "aclsym") {
     print <<__EOF__;
-# Automatically generated by gendispatch.pl.
+# Automatically generated from $protocol by gendispatch.pl.
 # Do not edit this file.  Any changes you make will be lost.
 __EOF__
 } elsif ($mode eq "aclapi") {
     print <<__EOF__;
 <!--
-  -  Automatically generated by gendispatch.pl.
+  -  Automatically generated from $protocol by gendispatch.pl.
   -  Do not edit this file.  Any changes you make will be lost.
   -->
 __EOF__
 } else {
     print <<__EOF__;
-/* Automatically generated by gendispatch.pl.
+/* Automatically generated from $protocol by gendispatch.pl.
  * Do not edit this file.  Any changes you make will be lost.
  */
 __EOF__