luci-0.8/contrib: change Makefile to always checkout latest revision
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 29 Apr 2009 06:22:13 +0000 (06:22 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 29 Apr 2009 06:22:13 +0000 (06:22 +0000)
contrib/package/luci/Makefile

index 2859a81a2b4409134b0c2cd29866454df6290139..028a218fa01a5c619248a187696b8bc689c39469 100644 (file)
@@ -14,8 +14,8 @@ ifeq ($(USELOCAL),1)
 else
   PKG_SOURCE_URL:=http://svn.luci.subsignal.org/luci/$(PKG_BRANCH)
   ifeq ($(DUMP),)
-    PKG_REV:=HEAD
-    PKG_VERSION:=0.8.6
+    PKG_REV:=$(shell LC_ALL=C svn info $(CURDIR) | sed -ne 's/^Revision: //p')
+    PKG_VERSION:=0.8+svn$(PKG_REV)
   endif
   PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
   PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz