freebsd-ports/sysutils/nut/files/patch-include-Makefile.in
Martin Matuska f366e08952 - Update to 2.2.1
PR:		ports/119777
Submitted by:	Mikle Davidkin <skylord at vt.net.ru>
Tested by:	mm
Approved by:	maintainer (timeout)
2008-02-19 12:23:39 +00:00

11 lines
636 B
Text

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