[csw-devel] SF.net SVN: gar:[12246] csw/mgar/gar/v2-uwatch2/gar.lib.mk

wbonnet at users.sourceforge.net wbonnet at users.sourceforge.net
Sat Jan 8 01:39:48 CET 2011


Revision: 12246
          http://gar.svn.sourceforge.net/gar/?rev=12246&view=rev
Author:   wbonnet
Date:     2011-01-08 00:39:47 +0000 (Sat, 08 Jan 2011)

Log Message:
-----------
Add target :

gmake get-current-version

This trget only output VERSION variable. PRovided for convienence

Modified Paths:
--------------
    csw/mgar/gar/v2-uwatch2/gar.lib.mk

Modified: csw/mgar/gar/v2-uwatch2/gar.lib.mk
===================================================================
--- csw/mgar/gar/v2-uwatch2/gar.lib.mk	2011-01-08 00:25:27 UTC (rev 12245)
+++ csw/mgar/gar/v2-uwatch2/gar.lib.mk	2011-01-08 00:39:47 UTC (rev 12246)
@@ -191,6 +191,17 @@
 endef
 
 ########################################################
+# Retrieve the current version
+#
+get-current-version:
+	@if [ ! -n '$(VERSION)' ]; then \
+		echo "$(NAME) : VERSION is not defined" ; \
+		false; \
+	else \
+		echo "$(NAME) : Current version is $(VERSION)" ; \
+	fi ;
+
+########################################################
 # Retrieve the list of upstream versions
 #
 get-upstream-version-list:VERSIONLIST = $(call versionlist)


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