[csw-devel] SF.net SVN: gar:[18694] csw/mgar/gar/v2/gar.pkg.mk
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Tue Jul 10 13:04:46 CEST 2012
Revision: 18694
http://gar.svn.sourceforge.net/gar/?rev=18694&view=rev
Author: dmichelsen
Date: 2012-07-10 11:04:46 +0000 (Tue, 10 Jul 2012)
Log Message:
-----------
mGAR v2: Check for package names to be less than 32 chars
Modified Paths:
--------------
csw/mgar/gar/v2/gar.pkg.mk
Modified: csw/mgar/gar/v2/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk 2012-07-10 10:12:00 UTC (rev 18693)
+++ csw/mgar/gar/v2/gar.pkg.mk 2012-07-10 11:04:46 UTC (rev 18694)
@@ -666,6 +666,12 @@
$(if $(shell if [ "$(SPKG_DESC_$(P))" = "$(SPKG_DESC_$(Q))" ]; then echo bad; fi),\
$(error The package descriptions for $(P) [$(if $(SPKG_DESC_$(P)),$(SPKG_DESC_$(P)),<not set>)] and $(Q) [$(if $(SPKG_DESC_$(Q)),$(SPKG_DESC_$(Q)),<not set>)] are identical. Please make sure that all descriptions are unique by setting SPKG_DESC_<pkg> for each package.),))))
+# Check that package names are 32 characters or less as reported in
+# https://sourceforge.net/apps/trac/gar/ticket/69
+$(foreach P,$(SPKG_SPECS),\
+ $(if $(shell perl -e 'print "toolong" if( length("$P")>32)'),$(error The package name $P is too long, maximum is 32 characters))\
+)
+
.PRECIOUS: $(WORKDIR)/%.pkginfo
# The texinfo filter has been taken out of the normal filters as TEXINFO has a default.
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