[javascriptlint-commit] SF.net SVN: javascriptlint:[294] trunk
Status: Beta
Brought to you by:
matthiasmiller
|
From: <mat...@us...> - 2009-12-16 17:23:32
|
Revision: 294
http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=294&view=rev
Author: matthiasmiller
Date: 2009-12-16 17:23:22 +0000 (Wed, 16 Dec 2009)
Log Message:
-----------
Embed the revision number in Windows executables. Also, add a config file to build on Windows 7.
Modified Paths:
--------------
trunk/setup.py
Added Paths:
-----------
trunk/spidermonkey/src/config/WINNT6.1.mk
Modified: trunk/setup.py
===================================================================
--- trunk/setup.py 2009-11-18 12:19:50 UTC (rev 293)
+++ trunk/setup.py 2009-12-16 17:23:22 UTC (rev 294)
@@ -10,6 +10,16 @@
class _BuildError(Exception):
pass
+def _getrevnum():
+ path = os.path.dirname(os.path.abspath(__file__))
+ p = subprocess.Popen(['svnversion', path], stdin=subprocess.PIPE,
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ stdout, stderr = p.communicate()
+ if p.returncode != 0:
+ raise _BuildError, 'Error running svnversion: %s' % stderr
+ version = stdout.strip().rstrip('M')
+ return int(version)
+
def _runmakefiles(distutils_dir, build_opt=1, target=None):
args = ['BUILD_OPT=%i' % build_opt]
if distutils_dir:
@@ -67,12 +77,12 @@
args = {}
args.update(
name = 'javascriptlint',
- version = '1.0',
+ version = '0.0.0.%i' % _getrevnum(),
author = 'Matthias Miller',
author_email = 'in...@ja...',
url = 'http://www.javascriptlint.com/',
cmdclass = cmdclass,
- description = 'JavaScript Lint',
+ description = 'JavaScript Lint (pyjsl beta r%i)' % _getrevnum(),
ext_modules = [pyspidermonkey],
packages = ['javascriptlint'],
scripts = ['jsl']
Added: trunk/spidermonkey/src/config/WINNT6.1.mk
===================================================================
--- trunk/spidermonkey/src/config/WINNT6.1.mk (rev 0)
+++ trunk/spidermonkey/src/config/WINNT6.1.mk 2009-12-16 17:23:22 UTC (rev 294)
@@ -0,0 +1 @@
+include $(DEPTH)/config/WINNT5.2.mk
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|