[Pm-utils] Makefile and create-archive

Peter Jones pjones at redhat.com
Mon May 1 07:47:35 PDT 2006

On Sat, 2006-04-29 at 19:16 +0100, Richard Hughes wrote:
> The current Makefile downloads the source using CVS. This doesn't seem
> to work for me, or maybe it's just because anoncvs is slow to sync for
> some reason.

It won't _ever_ work with anoncvs, because it tries to tag it.  Right
now I've applied the following patch, which will people with anoncvs
access to run "make test-archive" and get a tarball of CVS HEAD, or do
"make TESTTAG=0.18 test-archive" to make an archive of a previously
tagged version.

So tell me if this works for you:

Index: Makefile
RCS file: /cvs/pm-utils/pm-utils/Makefile,v
retrieving revision 1.29
diff -u -p -r1.29 Makefile
--- Makefile    1 May 2006 14:36:01 -0000       1.29
+++ Makefile    1 May 2006 14:46:21 -0000
@@ -14,7 +14,11 @@ libdir=$(prefix)/lib

 CVSROOT:=$(shell cat CVS/Root 2>/dev/null || :)

-CVSTAG = pm-utils-$(subst .,-,$(VERSION))
+CVSTAG ?= pm-utils-$(subst .,-,$(VERSION))
+ifneq ($(origin TESTTAG), file)
+  TESTTAG = pm-utils-$(subst .,-,$(TESTTAG))


@@ -65,6 +69,9 @@ create-archive:

 archive: clean tag-archive create-archive

+test-archive: clean
+       $(MAKE) CVSTAG=$(TESTTAG) create-archive



More information about the Pm-utils mailing list