# HG changeset patch # User Paul Moore # Date 1207861674 -7200 # Node ID 66e87c11447d612aa6902de2cc4012c3e264675d # Parent 5c1bb57505585347a9ef1f13b688e4933f2a22c6 Add a batch file driver for Windows diff -r 5c1bb5750558 -r 66e87c11447d contrib/win32/hg.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/win32/hg.bat Thu Apr 10 23:07:54 2008 +0200 @@ -0,0 +1,12 @@ +@echo off +rem Windows Driver script for Mercurial + +setlocal +set HG=%~f0 + +rem Use a full path to Python (relative to this script) as the standard Python +rem install does not put python.exe on the PATH... +rem %~dp0 is the directory of this script + +%~dp0..\python "%~dp0hg" %* +endlocal diff -r 5c1bb5750558 -r 66e87c11447d setup.py --- a/setup.py Thu Apr 10 14:25:50 2008 +0200 +++ b/setup.py Thu Apr 10 23:07:54 2008 +0200 @@ -19,6 +19,9 @@ import mercurial.version extra = {} +scripts = ['hg'] +if os.name == 'nt': + scripts.append('contrib/win32/hg.bat') # simplified version of distutils.ccompiler.CCompiler.has_function # that actually removes its temporary files. @@ -119,7 +122,7 @@ url='http://selenic.com/mercurial', description='Scalable distributed SCM', license='GNU GPL', - scripts=['hg'], + scripts=scripts, packages=packages, ext_modules=ext_modules, data_files=[(os.path.join('mercurial', root),