only run svn info if .svn exists

SVN-Revision: 9213
v19.07.3_mercusys_ac12_duma
Felix Fietkau 17 years ago
parent 8c97372e0d
commit c3a2acf7db

@ -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

Loading…
Cancel
Save