/[escript]/branches/diaplayground/SConstruct
ViewVC logotype

Diff of /branches/diaplayground/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC revision 1389 by gross, Mon Jan 14 03:31:57 2008 UTC
# Line 12  Line 12 
12  EnsureSConsVersion(0,96,91)  EnsureSConsVersion(0,96,91)
13  EnsurePythonVersion(2,3)  EnsurePythonVersion(2,3)
14    
15    
16  #===============================================================  #===============================================================
17  #   import tools:  #   import tools:
18  import glob  import glob
# Line 844  try: Line 845  try:
845  except KeyError:  except KeyError:
846     api_doxygen = None     api_doxygen = None
847    
848    global_revision="$Revison"
849  try:  try:
850     svn_pipe = os.popen("svnversion -n .")     svn_pipe = os.popen("svnversion -n .")
851     global_revision = svn_pipe.readlines()     global_revision = svn_pipe.readlines()
852     svn_pipe.close()     svn_pipe.close()
    global_revision = re.sub(":.*", "", global_revision[0])  
    global_revision = re.sub("[^0-9]", "", global_revision)  
853  except:  except:
854     global_revision = "0"     print "Extracting revision number failed. Using %s instead."%global_revision
855    global_revision = re.sub(":.*", "", global_revision[0])
856    global_revision = re.sub("[^0-9]", "", global_revision)
857  env.Append(CPPDEFINES = "SVN_VERSION="+global_revision)  env.Append(CPPDEFINES = "SVN_VERSION="+global_revision)
858    
859  # Python install - esys __init__.py  # Python install - esys __init__.py

Legend:
Removed from v.1388  
changed lines
  Added in v.1389

  ViewVC Help
Powered by ViewVC 1.1.26