summaryrefslogtreecommitdiff
path: root/sysutils/nut22/files/patch-include-Makefile.in
blob: de795aaf72e000bdfefa8117a9cfc8db0d95567a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- include/Makefile.in.orig	Fri Dec 21 15:00:52 2007
+++ include/Makefile.in	Thu Jan 17 20:23:32 2008
@@ -229,7 +229,7 @@
 BUILT_SOURCES = nut_version.h nut_stdint.h
 CLEANFILES = nut_version.h nut_stdint.h
 SVNREV = $(shell unset LANG && svnversion -n $(top_srcdir) 2>/dev/null)
-NUT_VERSION = $(shell if test "$(SVNREV)" = "exported"; then echo "$(PACKAGE_VERSION)"; else echo "$(PACKAGE_VERSION)-$(SVNREV)"; fi)
+NUT_VERSION = $(shell if test "$(SVNREV)" = "exported" -o -z "${SVNREV}"; then echo "$(PACKAGE_VERSION)"; else echo "$(PACKAGE_VERSION)-$(SVNREV)"; fi)
 all: $(BUILT_SOURCES) config.h
 	$(MAKE) $(AM_MAKEFLAGS) all-am