[csw-devel] SF.net SVN: gar:[15794] csw/mgar/pkg/pcp/trunk/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed Sep 28 17:50:18 CEST 2011


Revision: 15794
          http://gar.svn.sourceforge.net/gar/?rev=15794&view=rev
Author:   dmichelsen
Date:     2011-09-28 15:50:18 +0000 (Wed, 28 Sep 2011)
Log Message:
-----------
pcp: Add version check

Modified Paths:
--------------
    csw/mgar/pkg/pcp/trunk/Makefile

Modified: csw/mgar/pkg/pcp/trunk/Makefile
===================================================================
--- csw/mgar/pkg/pcp/trunk/Makefile	2011-09-28 15:37:34 UTC (rev 15793)
+++ csw/mgar/pkg/pcp/trunk/Makefile	2011-09-28 15:50:18 UTC (rev 15794)
@@ -25,9 +25,10 @@
 
 include gar/category.mk
 
-post-extract:
+post-extract-modulated: FOUND_VERSION=$(shell perl -n -e 'print $$1 if( /^# v(\d+\.\d+)/ );' $(WORKDIR)/pcp.txt)
+post-extract-modulated:
 	@echo " ==> Checking version of $(NAME)"
-#	SRCVER = `grep "^# v$(VERSION)" $(WORKDIR)/pcp.txt`
+	$(if $(filter $(VERSION),$(FOUND_VERSION)),,$(error Packaging up $(VERSION) but pcp.txt is $(FOUND_VERSION)))
 
 install-custom:
 	@echo " ==> Installing $(NAME) (custom)"

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