1
0
Fork 0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-05-18 21:46:20 +02:00

only run svn info if .svn exists

SVN-Revision: 9213
This commit is contained in:
Felix Fietkau 2007-10-09 03:37:31 +00:00
parent 8c97372e0d
commit c3a2acf7db

View 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