[Libguestfs] [PATCH] Don't include gnulib files in POTFILES.in.

Richard W.M. Jones rjones at redhat.com
Wed Sep 9 11:55:46 UTC 2009


On Wed, Sep 09, 2009 at 01:27:33PM +0200, Jim Meyering wrote:
> Richard W.M. Jones wrote:
> >>From a2f7faeeca9109e18ea8b90d5326d63c055e899b Mon Sep 17 00:00:00 2001
> > From: Richard Jones <rjones at trick.home.annexia.org>
> > Date: Wed, 9 Sep 2009 12:01:42 +0100
> > Subject: [PATCH 1/2] Don't include gnulib files in POTFILES.in.
> >
> > ---
> >  Makefile.am |    1 +
> >  1 files changed, 1 insertions(+), 0 deletions(-)
> >
> > diff --git a/Makefile.am b/Makefile.am
> > index bbf23d9..204c627 100644
> > --- a/Makefile.am
> > +++ b/Makefile.am
> > @@ -159,6 +159,7 @@ all-local:
> >  	grep -v 'daemon/lib/' | \
> >  	grep -v 'daemon/tests/' | \
> >  	grep -v 'examples/' | \
> > +	grep -v 'gnulib/' | \
> 
> Looks fine.
> Though, just to be safe, I'd prepend '^'.
> Otherwise, something like src/non-gnulib/anything.c
> would be silently excluded.

OK, attached is what I'm going to commit.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 75 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
-------------- next part --------------
>From 13458c821bfbe2e1ac0f355f436097951f465694 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at trick.home.annexia.org>
Date: Wed, 9 Sep 2009 12:01:42 +0100
Subject: [PATCH 1/3] Don't include gnulib files in POTFILES.in.

---
 Makefile.am |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index bbf23d9..1ea6ff0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -154,11 +154,13 @@ dist-hook:
 all-local:
 	cd $(srcdir); \
 	find $(DIST_SUBDIRS) -name '*.c' -o -name '*.pl' -o -name '*.pm' | \
-	grep -v 'perl/blib/' | \
-	grep -v 'capitests/' | \
-	grep -v 'daemon/lib/' | \
-	grep -v 'daemon/tests/' | \
-	grep -v 'examples/' | \
+	grep -v '^perl/blib/' | \
+	grep -v '^capitests/' | \
+	grep -v '^daemon/lib/' | \
+	grep -v '^daemon/tests/' | \
+	grep -v '^examples/' | \
+	grep -v '^gnulib/' | \
+	grep -v '^perl/examples/' | \
 	grep -v '/guestfs_protocol.c' | \
 	grep -v '/rc_protocol.c' | \
 	LC_ALL=C sort | \
-- 
1.6.2.5



More information about the Libguestfs mailing list