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

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Thu Aug 27 17:58:36 CEST 2009


Revision: 6122
          http://gar.svn.sourceforge.net/gar/?rev=6122&view=rev
Author:   dmichelsen
Date:     2009-08-27 15:58:36 +0000 (Thu, 27 Aug 2009)

Log Message:
-----------
mGAR v2: Make sure all package descriptions are unique. This fixes Trac Ticket #5

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

Modified: csw/mgar/gar/v2/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk	2009-08-27 15:45:31 UTC (rev 6121)
+++ csw/mgar/gar/v2/gar.pkg.mk	2009-08-27 15:58:36 UTC (rev 6122)
@@ -452,6 +452,14 @@
 $(if $($(1)_$(2)),$($(1)_$(2)),$($(1)))
 endef
 
+# Make sure every producable package contains specific descriptions.
+# We explicitly ignore NOPACKAGE here to disallow circumventing the check.
+$(foreach P,$(SPKG_SPECS),\
+  $(foreach Q,$(filter-out $P,$(SPKG_SPECS)),\
+    $(if $(shell if test "$(SPKG_DESC_$P)" = "$(SPKG_DESC_$Q)"; then echo ERROR; fi),\
+      $(error The package descriptions for $P and $Q are identical, please make sure all package descriptions are unique by setting SPKG_DESC_<pkg> for each package) \
+)))
+
 .PRECIOUS: $(WORKDIR)/%.pkginfo
 $(WORKDIR)/%.pkginfo: $(WORKDIR)
 	$(_DBG)(echo "PKG=$*"; \


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