##// END OF EJS Templates
Add a batch file driver for Windows
Paul Moore -
r6513:66e87c11 default
parent child Browse files
Show More
@@ -0,0 +1,12
1 @echo off
2 rem Windows Driver script for Mercurial
3
4 setlocal
5 set HG=%~f0
6
7 rem Use a full path to Python (relative to this script) as the standard Python
8 rem install does not put python.exe on the PATH...
9 rem %~dp0 is the directory of this script
10
11 %~dp0..\python "%~dp0hg" %*
12 endlocal
@@ -19,6 +19,9 from distutils.ccompiler import new_comp
19 19 import mercurial.version
20 20
21 21 extra = {}
22 scripts = ['hg']
23 if os.name == 'nt':
24 scripts.append('contrib/win32/hg.bat')
22 25
23 26 # simplified version of distutils.ccompiler.CCompiler.has_function
24 27 # that actually removes its temporary files.
@@ -119,7 +122,7 setup(name='mercurial',
119 122 url='http://selenic.com/mercurial',
120 123 description='Scalable distributed SCM',
121 124 license='GNU GPL',
122 scripts=['hg'],
125 scripts=scripts,
123 126 packages=packages,
124 127 ext_modules=ext_modules,
125 128 data_files=[(os.path.join('mercurial', root),
General Comments 0
You need to be logged in to leave comments. Login now