1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-18 12:19:02 +00:00

In the Mac build, discard local changes on export and rebuild the script

database to remove any entries that might have been added accidentally.
This commit is contained in:
david
2009-04-24 18:59:27 +00:00
parent 1b2e726629
commit 1fba10f142

View File

@@ -55,17 +55,19 @@ $(IMAGE_STAGING_DIR)/$(PKG_NAME): stage-nmap stage-ncat stage-ndiff stage-zenmap
export-%:
rm -rf $*
svn export .. $*
svn export ../nbase $*/nbase
svn export ../ncat $*/ncat
svn export ../nsock $*/nsock
svn export ../zenmap $*/zenmap
# Using @HEAD discards local changes.
svn export ..@HEAD $*
svn export ../nbase@HEAD $*/nbase
svn export ../ncat@HEAD $*/ncat
svn export ../nsock@HEAD $*/nsock
svn export ../zenmap@HEAD $*/zenmap
stage-nmap: export-$(NMAP_BUILD_DIR)
cd $(NMAP_BUILD_DIR) && ./configure --without-zenmap --without-ncat --without-ndiff $(CONFIGURE_ARGS)
make -C $(NMAP_BUILD_DIR)
rm -rf $(NMAP_STAGING_DIR)
make -C $(NMAP_BUILD_DIR) install DESTDIR="`pwd`/$(NMAP_STAGING_DIR)"
`pwd`/$(NMAP_STAGING_DIR)$(PREFIX)/bin/nmap --datadir `pwd`/$(NMAP_STAGING_DIR)$(PREFIX)/share/nmap --script-updatedb
stage-ncat: export-$(NCAT_BUILD_DIR)
cd $(NCAT_BUILD_DIR) && ./configure --without-zenmap --with-ncat --without-ndiff $(CONFIGURE_ARGS)