[csw-devel] SF.net SVN: gar:[2428] csw/mgar

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Dec 2 16:49:33 CET 2008


Revision: 2428
          http://gar.svn.sourceforge.net/gar/?rev=2428&view=rev
Author:   dmichelsen
Date:     2008-12-02 15:49:33 +0000 (Tue, 02 Dec 2008)

Log Message:
-----------
mGAR v1: Added new target 'pkglist'

Modified Paths:
--------------
    csw/mgar/gar/v1/gar.pkg.mk
    csw/mgar/pkg/Makefile

Modified: csw/mgar/gar/v1/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v1/gar.pkg.mk	2008-12-02 06:53:17 UTC (rev 2427)
+++ csw/mgar/gar/v1/gar.pkg.mk	2008-12-02 15:49:33 UTC (rev 2428)
@@ -195,3 +195,22 @@
 pkgenv:
 	@$(PKG_ENV) env
 
+
+# pkglist - list the packages to be built with GAR pathname, catalog name and package name
+#
+
+define _pkglist_pkgname
+$(shell perl -F'\s+' -ane 'print "$$F[2]" if( $$F[0] eq "%var" && $$F[1] eq "pkgname")' files/$(1).gspec)
+endef
+
+define _pkglist_catalogname
+$(shell perl -F'\s+' -ane 'print "$$F[2]" if( $$F[0] eq "%var" && $$F[1] eq "bitname")' files/$(1).gspec)
+endef
+
+define _pkglist_one
+$(shell /usr/bin/echo "$(patsubst $(realpath $(shell pwd)/$(GARDIR))/%,%,$(realpath .))\t$(call _pkglist_catalogname,$(1))\t$(call _pkglist_pkgname,$(1))")
+endef
+
+pkglist:
+	@echo "G: $(GARDIR) - $(shell pwd) - $(realpath $(shell pwd)/$(GARDIR)) - $(realpath .)"
+	@$(foreach SPEC,$(SPKG_SPECS),echo "$(call _pkglist_one,$(SPEC))";)

Modified: csw/mgar/pkg/Makefile
===================================================================
--- csw/mgar/pkg/Makefile	2008-12-02 06:53:17 UTC (rev 2427)
+++ csw/mgar/pkg/Makefile	2008-12-02 15:49:33 UTC (rev 2428)
@@ -22,6 +22,11 @@
 		$(MAKE) -C $$i $* || echo "	*** make $* in $$i failed ***" >> $(BUILDLOG); \
 	done
 
+pkglist:
+	@for i in $(filter-out $(FILTER_DIRS),$(wildcard */)) ; do \
+		$(MAKE) -s -C $$i/trunk pkglist ; \
+	done
+
 newpkg-%:
 	@svn mkdir $* $*/tags $*/branches $*/trunk $*/trunk/files
 	@(echo "GARNAME = package";                                     \


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