[libvirt] [PATCH] Add a rule for generating .hgignore

Daniel P. Berrange berrange at redhat.com
Thu Jan 22 10:10:13 UTC 2009


On Wed, Jan 21, 2009 at 02:17:46PM -0800, john.levon at sun.com wrote:
> # HG changeset patch
> # User john.levon at sun.com
> # Date 1232576262 28800
> # Node ID c58822f94b2b5e87a363128a4bd36ec2846054fe
> # Parent  c109dd0801246b82aed8d5f9b1fa4196432868d0
> Add a rule for generating .hgignore
> 
> Signed-off-by: John Levon <john.levon at sun.com>
> 
> diff --git a/Makefile.maint b/Makefile.maint
> --- a/Makefile.maint
> +++ b/Makefile.maint
> @@ -717,3 +717,5 @@ sync-vcs-ignore-files:
>  	mv $(c2g)-t $(c2g)
>  	perl $(c2g)
>  	rm -f $(c2g)
> +	find $(srcdir) -name .gitignore | xargs cat \
> +	    | sort -u | sed 's+\*+.*+' >.hgignore

I've just noticed that the .hgignore format allows you to switch it to
using globs instead of regexes, so we can just copy across the .gitignore
as is, prepending

     syntax: glob

as the first line of the file - see 'man hgignore' for  this useful tip!

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list