From 82e2cc323da2dc24ca65b86ef8c83a68f5ede86b Mon Sep 17 00:00:00 2001 From: david Date: Fri, 11 Jun 2010 22:39:10 +0000 Subject: [PATCH] Copy the nselib directory as we do in the POSIX makefile, to avoid installing .svn directories. These were previously present in the Windows zip file, in the nselib/data and nselib/data/psexec directories. --- mswin32/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mswin32/Makefile b/mswin32/Makefile index f60806b69..1d5bf47c6 100644 --- a/mswin32/Makefile +++ b/mswin32/Makefile @@ -26,8 +26,12 @@ winbuild: cp -f OpenSSL/bin/*.dll ./nmap-$(NMAP_VERSION)/ mkdir nmap-$(NMAP_VERSION)/scripts cd Release && cp -f $(NSE_FILES) ../nmap-$(NMAP_VERSION)/scripts/ - mkdir nmap-$(NMAP_VERSION)/nselib - cp -a Release/nselib nmap-$(NMAP_VERSION) + cd Release && for f in `find nselib -name .svn -prune -o -type d -print`; do \ + mkdir -p ../nmap-$(NMAP_VERSION)/$$f; \ + done + cd Release && for f in `find nselib -name .svn -prune -o -type f -print`; do \ + cp -f $$f ../nmap-$(NMAP_VERSION)/$$f; \ + done cp winpcap/winpcap-nmap-*.exe nmap-$(NMAP_VERSION) cp vcredist_x86.exe nmap-$(NMAP_VERSION) cp ../ncat/Release/ncat.exe nmap-$(NMAP_VERSION)