[Pm-utils] Makefile and create-archive

Richard Hughes hughsient at gmail.com
Sat Apr 29 11:16:31 PDT 2006


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.

Is there any reason why we can't do something like this:

Index: Makefile
===================================================================
RCS file: /cvs/pm-utils/pm-utils/Makefile,v
retrieving revision 1.27
diff -u -r1.27 Makefile
--- Makefile    28 Apr 2006 17:34:05 -0000      1.27
+++ Makefile    29 Apr 2006 18:14:08 -0000
@@ -53,11 +53,10 @@
        @cvs -Q tag -F $(CVSTAG)

 create-archive:
-       @rm -rf /tmp/pm-utils
-       @cd /tmp ; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) pm-utils ||
echo "Um... export aborted."
-       @mv /tmp/pm-utils /tmp/pm-utils-$(VERSION)
-       @cd /tmp ; tar -czSpf pm-utils-$(VERSION).tar.gz
pm-utils-$(VERSION)
-       @rm -rf /tmp/pm-utils-$(VERSION)
+       @rm -rf /tmp/pm-utils*
+       @mkdir /tmp/pm-utils-$(VERSION)
+       @cp -R * /tmp/pm-utils-$(VERSION)/
+       @cd /tmp; tar --exclude=CVS --exclude=*.tar.gz -czSpf
pm-utils-$(VERSION).tar.gz pm-utils-$(VERSION)
        @cp /tmp/pm-utils-$(VERSION).tar.gz .
        @rm -f /tmp/pm-utils-$(VERSION).tar.gz
        @echo ""

Richard.



More information about the Pm-utils mailing list