From: nbd Date: Tue, 9 Oct 2007 03:37:31 +0000 (+0000) Subject: only run svn info if .svn exists X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=fb4d0a4ce7137bb95bf193b3c44ab5b7e86561bc only run svn info if .svn exists git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9213 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/include/toplevel.mk b/include/toplevel.mk index a9ca3a280..3e3916534 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