[libvirt] [dbus PATCH 2/2] AUTHORS: Indent list of contributors

Pavel Hrdina phrdina at redhat.com
Wed Jul 4 06:50:04 UTC 2018


On Wed, Jul 04, 2018 at 08:26:17AM +0200, Andrea Bolognani wrote:
> The list of maintainers is already indented, so doing the
> same (programmatically) for the list of contributors as
> well makes the result quite a bit nicer.
> 
> Signed-off-by: Andrea Bolognani <abologna at redhat.com>
> ---
>  Makefile.am | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/Makefile.am b/Makefile.am
> index 8abba68..f5fd8d7 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -29,7 +29,8 @@ dist-hook: gen-AUTHORS
>  .PHONY: gen-AUTHORS
>  gen-AUTHORS:
>  	$(AM_V_GEN)if test -d $(srcdir)/.git; then                      \
> -	  out="`cd $(srcdir) && git log --pretty=format:'%aN <%aE>' | sort -u`" && \
> +	  out="`cd $(srcdir) && git log --pretty=format:'%aN <%aE>'`" && \
> +	  out="`echo "$$out" | sort -u | sed 's/^/    /g'`" && \

Instead of the 'sed' command you can put the indentation into the
'format':

    format:'    %aN <%aE>'

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180704/a16a3ea2/attachment-0001.sig>


More information about the libvir-list mailing list