[Top][All Lists]

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

[bug-cppi] extension of cppi to cover spec files?

From: Eric Blake
Subject: [bug-cppi] extension of cppi to cover spec files?
Date: Thu, 10 Jan 2013 10:31:57 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On the libvirt list, there was a thread[1] that mentioned that in a .rpm
file, writing:

%if %{condition1}
 %define foo 0
 %define foo 1
 %if %{condition2}
  %define bar 1

is more legible than when everything is flush to the left column.  It
seems like with some slight modifications, cppi could be extended to be
used as a way to enforce an indentation style on rpm file macros.  What
do you think?

[1] https://www.redhat.com/archives/libvir-list/2013-January/msg00570.html

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]