only run svn info if .svn exists
authorFelix Fietkau <nbd@openwrt.org>
Tue, 9 Oct 2007 03:37:31 +0000 (03:37 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 9 Oct 2007 03:37:31 +0000 (03:37 +0000)
SVN-Revision: 9213

include/toplevel.mk

index a9ca3a2..3e39165 100644 (file)
@@ -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