mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 11:49:01 +00:00
If you have trouble updating after this revision you need to follow these instructions. You have probably just seen an error like this: svn: URL 'svn://svn.insecure.org/nping' of existing directory 'nping' does not match expected URL 'svn://svn.insecure.org/nmap/nping' This is caused by the replacement of SVN externals. Here's what you need to do. First, save any local changes you might have in the nping, nsock, nbase, ncat, and zenmap directories. (For example by running "cd nping; svn diff > ../nping.diff".) If you don't have any local changes you can skip this step. Then run these commands: rm -rf nping/ nsock/ nbase/ ncat/ zenmap/ svn update svn cleanup If all else fails, you can just delete your whole working directory and check out anew: svn co --username guest --password "" svn://svn.insecure.org/nmap There may be further discussion in the mailing list thread at http://seclists.org/nmap-dev/2011/q4/303.
57 lines
1.6 KiB
Batchfile
Executable File
57 lines
1.6 KiB
Batchfile
Executable File
@echo off
|
|
|
|
echo Setting installation variables...
|
|
set PythonDir=C:\Python27
|
|
set PythonEXE=%PythonDir%\python.exe
|
|
set DistDir=dist
|
|
set LibraryDir=%DistDir%\py2exe
|
|
set GTKDir=%PythonDir%\Lib\site-packages\gtk-2.0\runtime
|
|
set Output=win_install.log
|
|
|
|
IF EXIST %PythonEXE% GOTO GGTK
|
|
ECHO No Python found!
|
|
EXIT 1
|
|
|
|
:GGTK
|
|
IF EXIST %GTKDir% GOTO GWork
|
|
ECHO No GTK found!
|
|
EXIT 1
|
|
|
|
:GWork
|
|
|
|
echo Writing output to %Output%
|
|
|
|
echo Removing old compilation...
|
|
IF EXIST %DistDir% rd %DistDir% /s /q > %Output%
|
|
|
|
echo Creating dist directory tree...
|
|
mkdir %LibraryDir%\etc
|
|
mkdir %LibraryDir%\share
|
|
mkdir %LibraryDir%\share\themes
|
|
mkdir %LibraryDir%\lib
|
|
|
|
echo Copying GTK files to dist directory...
|
|
xcopy %GTKDir%\bin\*.dll %LibraryDir% /S >> %Output%
|
|
rem intl.dll is a special case; has to be in the executable directory instead of
|
|
rem the py2exe subdirectory.
|
|
move /Y %LibraryDir%/intl.dll %DistDir% >> %Output%
|
|
xcopy %GTKDir%\etc %LibraryDir%\etc /S /I >> %Output%
|
|
xcopy %GTKDir%\lib\gtk-2.0 %LibraryDir%\lib\gtk-2.0 /S /I >> %Output%
|
|
xcopy %GTKDir%\share\themes\Default %LibraryDir%\share\themes\Default /S /I >> %Output%
|
|
xcopy %GTKDir%\share\themes\MS-Windows %LibraryDir%\share\themes\MS-Windows /S /I >> %Output%
|
|
|
|
echo Compiling using py2exe...
|
|
%PythonEXE% setup.py py2exe >> %Output%
|
|
|
|
echo Removing the build directory...
|
|
rd build /s /q >> %Output%
|
|
|
|
rem Check that the gtkrc file was manually created so Zenmap will look pretty
|
|
IF EXIST %DistDir%\etc\gtk-2.0\gtkrc GOTO gtkrc
|
|
echo gtk-theme-name = "MS-Windows" > %DistDir%\py2exe\etc\gtk-2.0\gtkrc
|
|
echo Created the missing file %DistDir%\py2exe\etc\gtk-2.0\gtkrc >> %Output%
|
|
:gtkrc
|
|
|
|
echo Done!
|
|
|