From 8fee41d398cbda1e5d560605dd3531d420b07caf Mon Sep 17 00:00:00 2001 From: david Date: Mon, 29 Mar 2010 02:22:02 +0000 Subject: [PATCH] Automatically update the Nping version number to "0.NMAP_VERSION". --- Makefile.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index d4aed1fbb..6c84b12c0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -241,6 +241,11 @@ $(NCATDIR)/ncat.h: nmap.h sed -e 's/^#[ \t]*define[ \t]\+NCAT_VERSION[ \t]\+\(".*"\)/#define NCAT_VERSION "$(NMAP_VERSION)"/' $@ > $@.tmp mv -f $@.tmp $@ +# Update the Nping version number. This is "0.NMAP_VERSION". +$(NPINGDIR)/nping.h: nmap.h + sed -e 's/^#[ \t]*define[ \t]\+NPING_VERSION[ \t]\+\(".*"\)/#define NPING_VERSION "0.$(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 cd $(ZENMAPDIR) && $(PYTHON) install_scripts/utils/version_update.py "$(NMAP_VERSION)" @@ -274,7 +279,7 @@ install-zenmap: $(ZENMAPDIR)/setup.py build-ndiff: cd $(NDIFFDIR) && $(PYTHON) setup.py build $(if $(DESTDIR),--executable "$(DEFAULT_PYTHON_PATH)") -build-nping: $(NPINGDIR)/Makefile nbase_build nsock_build +build-nping: $(NPINGDIR)/Makefile nbase_build nsock_build $(NPINGDIR)/nping.h @cd $(NPINGDIR) && $(MAKE) install-ndiff: