--- luci/Makefile | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/luci/Makefile b/luci/Makefile index 354de1e..ac1ac78 100644 --- a/luci/Makefile +++ b/luci/Makefile @@ -4,6 +4,7 @@ PKG_BRANCH:=trunk ifeq ($(DUMP),) USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null && echo 1) + USEGSVN:=$(shell git svn info 2>/dev/null >/dev/null && echo 1) endif PKG_NAME:=luci @@ -16,7 +17,11 @@ ifeq ($(USELOCAL),1) else PKG_SOURCE_URL:=http://svn.luci.subsignal.org/luci/$(PKG_BRANCH) ifeq ($(DUMP),) - PKG_REV:=$(shell LC_ALL=C svn info $(CURDIR) | sed -ne's/^Revision: //p') + ifeq ($(USEGSVN),1) + PKG_REV:=$(shell LC_ALL=C svn info $(PKG_SOURCE_URL) | sed -ne's/^Revision: //p') + else + PKG_REV:=$(shell LC_ALL=C svn info $(CURDIR) | sed -ne's/^Revision: //p') + endif PKG_VERSION:=0.10+svn$(PKG_REV) endif PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -- 1.7.4.1 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel