aboutsummaryrefslogtreecommitdiffstats
path: root/include/toplevel.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-10-09 03:37:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-10-09 03:37:31 +0000
commitfa7f3132e12fe02992708dcd8262f1e2eaf70cae (patch)
treeeaa4a9aa4816c85bf6902716361509ba119004c6 /include/toplevel.mk
parenta1d7a399e41e4848f3f31db96d9e885785c21cd3 (diff)
downloadupstream-fa7f3132e12fe02992708dcd8262f1e2eaf70cae.tar.gz
upstream-fa7f3132e12fe02992708dcd8262f1e2eaf70cae.tar.bz2
upstream-fa7f3132e12fe02992708dcd8262f1e2eaf70cae.zip
only run svn info if .svn exists
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9213 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/toplevel.mk')
-rw-r--r--include/toplevel.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index a9ca3a2806..3e39165349 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -16,7 +16,7 @@ include $(TOPDIR)/include/verbose.mk
ifneq ($(VERSION),)
OPENWRTVERSION:=$(VERSION) ($(OPENWRTVERSION))
else
- REV:=$(shell LANG=C svn info | awk '/^Revision:/ { print$$2 }' )
+ REV:=$(if $(wildcard .svn/entries),$(shell LANG=C svn info | awk '/^Revision:/ { print$$2 }' ))
ifneq ($(REV),)
OPENWRTVERSION:=$(OPENWRTVERSION)/r$(REV)
endif