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

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

 



On Wed, Jan 21, 2009 at 02:17:46PM -0800, john.levon@xxxxxxx wrote:
> # HG changeset patch
> # User john.levon@xxxxxxx
> # Date 1232576262 28800
> # Node ID c58822f94b2b5e87a363128a4bd36ec2846054fe
> # Parent  c109dd0801246b82aed8d5f9b1fa4196432868d0
> Add a rule for generating .hgignore
> 
> Signed-off-by: John Levon <john.levon@xxxxxxx>
> 
> 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 :|

--
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]