From: Felix Fietkau Date: Tue, 9 Oct 2007 03:37:31 +0000 (+0000) Subject: only run svn info if .svn exists X-Git-Tag: reboot~27895 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c3a2acf7dbb47667c5f0cbabed9c451447337159;p=openwrt%2Fstaging%2Fnoltari.git only run svn info if .svn exists SVN-Revision: 9213 --- 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