[csw-devel] SF.net SVN: gar:[2459] csw/mgar/gar/v2/gar.pkg.mk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri Dec 5 08:39:49 CET 2008


Revision: 2459
          http://gar.svn.sourceforge.net/gar/?rev=2459&view=rev
Author:   dmichelsen
Date:     2008-12-05 07:39:49 +0000 (Fri, 05 Dec 2008)

Log Message:
-----------
mGAR v2: Merge [2428] 'new target pkglist'

Modified Paths:
--------------
    csw/mgar/gar/v2/gar.pkg.mk

Modified: csw/mgar/gar/v2/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk	2008-12-04 20:32:11 UTC (rev 2458)
+++ csw/mgar/gar/v2/gar.pkg.mk	2008-12-05 07:39:49 UTC (rev 2459)
@@ -243,3 +243,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))";)


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