Nmap Development mailing list archives

Thoughts on automating binary version numbers


From: "Eddie Bell" <ejlbell () gmail com>
Date: Thu, 14 Jun 2007 17:40:53 +0100

hey all,

I've been looking at ways to automatically set the nmap.exe and
nmapInstaller.exe version properties. The way I'm doing it at the
moment is quite complicated:

1) ?? Extract version from nmap.h

2) set the .rc version in vc++'s pre-build process. VC++ will then set
the version for nmap.exe

3) ?? Convert nmap.rc to nmap.res

4) The nsis script uses resHacker.exe and nmap.res to set the version
for nmapInstaller.exe

Step 3 is tricky. There are a couple of tool which will do it but due
to licensing cannot be used. ResHacker can compile .rc files but
requires interaction with a GUI

The alternative approach is to handle the whole thing on linux. We
could use the makefile to update nmap.rc and nmap.res to the version
in nmap.h. Then when the code is next built in windows the versions of
the binaries will be updated. Although not ideal, it is much simpler
then doing the whole thing on windows.

What do you think? Anyone got any better ideas?

thanks
  - eddie

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: