Skip to content
Snippets Groups Projects
Commit 159d2d47 authored by Christian Goetze's avatar Christian Goetze
Browse files

Make update_version_files.py look in the environment for the location of

the svn executable, default to "svn" is not set.
parent e4b45101
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
import getopt, sys, os, re, commands import getopt, sys, os, re, commands
from indra.util import llversion from indra.util import llversion
svn = os.path.expandvars("${SVN}")
if not svn: svn = "svn"
def usage(): def usage():
print "Usage:" print "Usage:"
print sys.argv[0] + """ [options] print sys.argv[0] + """ [options]
...@@ -213,7 +216,7 @@ def main(): ...@@ -213,7 +216,7 @@ def main():
server_version = new_version server_version = new_version
else: else:
# Assume we're updating just the build number # Assume we're updating just the build number
cl = 'svn info "%s"' % src_root cl = '%s info "%s"' % (svn, src_root)
status, output = _getstatusoutput(cl) status, output = _getstatusoutput(cl)
if verbose: if verbose:
print print
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment