From 6a25f40b641a21f325d986178852c0a3d51b1ba2 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 1 Sep 2009 15:44:55 +0000 Subject: [PATCH] Use a temporary file when setting the version number in ncat.h to work around NetBSD sed that doesn't have the -i option. --- Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 42943a5ea..d08b9d899 100644 --- a/Makefile.in +++ b/Makefile.in @@ -214,7 +214,8 @@ install-nmap: $(TARGET) # Update the Ncat version number. $(NCATDIR)/ncat.h: nmap.h - sed -i -e 's/^#[ \t]*define[ \t]\+NCAT_VERSION[ \t]\+\(".*"\)/#define NCAT_VERSION "$(NMAP_VERSION)"/' $@ + sed -e 's/^#[ \t]*define[ \t]\+NCAT_VERSION[ \t]\+\(".*"\)/#define NCAT_VERSION "$(NMAP_VERSION)"/' $@ > $@.tmp + mv -f $@.tmp $@ # Update the version number used by Zenmap. $(ZENMAPDIR)/zenmapCore/Version.py $(ZENMAPDIR)/share/zenmap/config/zenmap_version: nmap.h