X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/d29153dc010840afa45e70ced91c5e558fca6bb6..fb4d0a4ce7137bb95bf193b3c44ab5b7e86561bc:/include/toplevel.mk?ds=sidebyside 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