render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
43fe83
From 0d1f9f194177011d678872b55a318c4d60e6b850 Mon Sep 17 00:00:00 2001
43fe83
Message-Id: <0d1f9f194177011d678872b55a318c4d60e6b850.1377873638.git.jdenemar@redhat.com>
43fe83
From: "Daniel P. Berrange" <berrange@redhat.com>
43fe83
Date: Tue, 13 Aug 2013 11:38:27 +0100
43fe83
Subject: [PATCH] Record the where the auto-generated data comes from
43fe83
43fe83
For https://bugzilla.redhat.com/show_bug.cgi?id=700443
43fe83
43fe83
The gendispatch.pl script puts comments at the top of files
43fe83
it creates, saying that it auto-generated them. Also include
43fe83
the name of the source data file which it reads when doing
43fe83
the auto-generation.
43fe83
43fe83
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
43fe83
(cherry picked from commit 0f3f0fad8c65e664733148b8bb8a766a0b86c603)
43fe83
---
43fe83
 src/rpc/gendispatch.pl | 6 +++---
43fe83
 1 file changed, 3 insertions(+), 3 deletions(-)
43fe83
43fe83
diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl
43fe83
index ac0c7ab..ceb1ad8 100755
43fe83
--- a/src/rpc/gendispatch.pl
43fe83
+++ b/src/rpc/gendispatch.pl
43fe83
@@ -348,19 +348,19 @@ sub hyper_to_long
43fe83
 
43fe83
 if ($mode eq "aclsym") {
43fe83
     print <<__EOF__;
43fe83
-# Automatically generated by gendispatch.pl.
43fe83
+# Automatically generated from $protocol by gendispatch.pl.
43fe83
 # Do not edit this file.  Any changes you make will be lost.
43fe83
 __EOF__
43fe83
 } elsif ($mode eq "aclapi") {
43fe83
     print <<__EOF__;
43fe83
 
43fe83
-  -  Automatically generated by gendispatch.pl.
43fe83
+  -  Automatically generated from $protocol by gendispatch.pl.
43fe83
   -  Do not edit this file.  Any changes you make will be lost.
43fe83
   -->
43fe83
 __EOF__
43fe83
 } else {
43fe83
     print <<__EOF__;
43fe83
-/* Automatically generated by gendispatch.pl.
43fe83
+/* Automatically generated from $protocol by gendispatch.pl.
43fe83
  * Do not edit this file.  Any changes you make will be lost.
43fe83
  */
43fe83
 __EOF__
43fe83
-- 
43fe83
1.8.3.2
43fe83