Re: [PATCH] Record the where the auto-generated data comes from

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08.08.2013 13:27, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> 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@xxxxxxxxxx>
> ---
>  src/rpc/gendispatch.pl | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl
> index ac0c7ab..ceb1ad8 100755
> --- a/src/rpc/gendispatch.pl
> +++ b/src/rpc/gendispatch.pl
> @@ -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__
> 

ACK

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]