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

Diff of /branches/diaplayground/SConstruct

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

revision 1390 by gross, Mon Jan 14 03:46:11 2008 UTC revision 1391 by gross, Mon Jan 14 03:54:57 2008 UTC
# Line 845  try: Line 845  try:
845  except KeyError:  except KeyError:
846     api_doxygen = None     api_doxygen = None
847    
 global_revision="$Rev$"  
848  try:  try:
849     svn_pipe = os.popen("svnversion -n .")     svn_pipe = os.popen("svnversion -n .")
850     global_revision = svn_pipe.readlines()     global_revision = svn_pipe.readlines()
851     svn_pipe.close()     svn_pipe.close()
852       global_revision = re.sub(":.*", "", global_revision[0])
853       global_revision = re.sub("[^0-9]", "", global_revision)
854  except:  except:
855     print "Extracting revision number failed. Using %s instead."%global_revision     global_revision="-1"
856  global_revision = re.sub(":.*", "", global_revision[0])     print "Warning: unable to recover global revsion number."
857  global_revision = re.sub("[^0-9]", "", global_revision)  print "Revision number is %s."%global_revision
858  env.Append(CPPDEFINES = "SVN_VERSION="+global_revision)  env.Append(CPPDEFINES = "SVN_VERSION="+global_revision)
859    
860  # Python install - esys __init__.py  # Python install - esys __init__.py

Legend:
Removed from v.1390  
changed lines
  Added in v.1391

  ViewVC Help
Powered by ViewVC 1.1.26