[csw-devel] SF.net SVN: gar:[10076] csw/mgar/pkg/cswutils/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Jun 3 02:36:25 CEST 2010


Revision: 10076
          http://gar.svn.sourceforge.net/gar/?rev=10076&view=rev
Author:   bdwalton
Date:     2010-06-03 00:36:25 +0000 (Thu, 03 Jun 2010)

Log Message:
-----------
cswutils: rework the handling of the .py files from gar

Modified Paths:
--------------
    csw/mgar/pkg/cswutils/trunk/Makefile
    csw/mgar/pkg/cswutils/trunk/checksums

Modified: csw/mgar/pkg/cswutils/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cswutils/trunk/Makefile	2010-06-02 21:00:19 UTC (rev 10075)
+++ csw/mgar/pkg/cswutils/trunk/Makefile	2010-06-03 00:36:25 UTC (rev 10076)
@@ -13,6 +13,10 @@
 
 MASTER_SITES =
 SVN_FILES = compare_pkgs.py
+
+# these are pulled from gar/lib/python
+PYFILES = opencsw.py checkpkg.py submit_to_newpkgs.py package_checks.py
+
 DISTFILES = COPYING
 DISTFILES += checkpkg checkpkg.8
 DISTFILES += cpan2pkg
@@ -20,9 +24,8 @@
 DISTFILES += stagepkg stagepkg.8
 DISTFILES += stagepkg stagepkg.8
 DISTFILES += $(foreach F,$(SVN_FILES),$(F)-r$(SVN_REV))
-DISTFILES += opencsw.py checkpkg.py submit_to_newpkgs.py
+DISTFILES += $(PYFILES)
 
-
 RUNTIME_DEP_PKGS = CSWcoreutils CSWfakeroot CSWperl
 RUNTIME_DEP_PKGS += CSWpmyaml CSWpmlibwww CSWpmhtmltree
 RUNTIME_DEP_PKGS += CSWpython
@@ -60,19 +63,11 @@
 	mv $(subst -r$(SVN_REV),,$(notdir $@)) $@
 	@$(MAKECOOKIE)
 
-$(DOWNLOADDIR)/opencsw.py:
-	ln -s $(abspath gar/lib/python/opencsw.py) $(DOWNLOADDIR)/
+$(foreach PY,$(PYFILES),$(DOWNLOADDIR)/$(PY)):
+	@echo "Grabbing $@"
+	@ln -s $(abspath gar/lib/python/$(notdir $@)) $(DOWNLOADDIR)/
 	@$(MAKECOOKIE)
 
-$(DOWNLOADDIR)/checkpkg.py:
-	ln -s $(abspath gar/lib/python/checkpkg.py) $(DOWNLOADDIR)/
-	@$(MAKECOOKIE)
-
-$(DOWNLOADDIR)/submit_to_newpkgs.py:
-	ln -s $(abspath gar/lib/python/submit_to_newpkgs.py) $(DOWNLOADDIR)/
-	@$(MAKECOOKIE)
-
-
 install-custom:
 	@ginstall -d $(DESTDIR)$(bindir)
 	@ginstall $(WORKSRC)/checkpkg $(DESTDIR)$(bindir)
@@ -85,9 +80,10 @@
 	@ginstall $(WORKSRC)/createpkg.8 $(DESTDIR)$(mandir)/man8/
 	@ginstall $(WORKSRC)/stagepkg.8 $(DESTDIR)$(mandir)/man8/
 	@ginstall -d $(DESTDIR)$(libdir)/python/csw
-	@ginstall -m 755 $(WORKSRC)/opencsw.py $(WORKSRC)/checkpkg.py \
-			 $(WORKSRC)/submit_to_newpkgs.py \
-		$(DESTDIR)$(libdir)/python/csw/
+	@for f in $(PYFILES); do \
+		ginstall -m 755 $(WORKSRC)/$${f} \
+			$(DESTDIR)/$(libdir)/python/csw/; \
+	done
 	@for f in $(SVN_FILES); do \
 		ginstall -m 755 $(WORKSRC)/$${f}-r$(SVN_REV) \
 		$(DESTDIR)$(libdir)/python/csw/$${f}; \

Modified: csw/mgar/pkg/cswutils/trunk/checksums
===================================================================
--- csw/mgar/pkg/cswutils/trunk/checksums	2010-06-02 21:00:19 UTC (rev 10075)
+++ csw/mgar/pkg/cswutils/trunk/checksums	2010-06-03 00:36:25 UTC (rev 10076)
@@ -7,6 +7,7 @@
 93b6a811d303ce3be0050c5a7b3c8e69  createpkg
 a605598f30195f9ab1b29fc3944d3b31  createpkg.8
 db1023c820a48161832687c20fcd0d70  opencsw.py
+359dbdbd4643470df1bf9dc7c115c23d  package_checks.py
 cd4496ee27bf86d5c8bc656c9c5974be  stagepkg
 8908a0a898aa07a7a928b2b8bd8384f0  stagepkg.8
 d83f47f61a12b29ba50a5e83944fe4ff  submit_to_newpkgs.py


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list