gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: jakarta-gump/python build.py
Date Thu, 24 Apr 2003 07:45:51 GMT
nicolaken    2003/04/24 00:45:51

  Modified:    python   build.py
  Log:
  Move main-specific commands in the main part, so that this file
  can be used in others, following Sam's equivalent changes to gen.py
  
  Revision  Changes    Path
  1.3       +14 -20    jakarta-gump/python/build.py
  
  Index: build.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/build.py,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.py	23 Apr 2003 16:51:18 -0000	1.2
  +++ build.py	24 Apr 2003 07:45:50 -0000	1.3
  @@ -8,26 +8,6 @@
   from gumpcore import *
   from gumpconf import *
   
  -# cd into the base Gump dir; all dirs are relative to it
  -os.chdir(dir.base)
  -
  -# file-wide properites
  -debug=True #False
  -
  -# load commandline args or use default values
  -if len(sys.argv)>1 :
  -  ws=sys.argv[1]
  -else:
  -  ws=default.workspace
  -
  -if len(sys.argv)>2 :
  -  ps=sys.argv[2]
  -else:
  -  # FIXME (nicolaken)
  -  # first try to use the 'computername.xml' file as a
  -  # workspace definition, as with the original Gump
  -  ps=default.project
  -
   # dump all dependencies to build a project to the output
   def dumpDeps(workspace, projectname):
   
  @@ -96,6 +76,20 @@
     
   # static void main()
   if __name__=='__main__':
  +  # cd into the base Gump dir; all dirs are relative to it
  +  os.chdir(dir.base)
  +    
  +  # load commandline args or use default values
  +  if len(sys.argv)>1 :
  +    ws=sys.argv[1]
  +  else:
  +    ws=default.workspace
  +    
  +  if len(sys.argv)>2 :
  +    ps=sys.argv[2]
  +  else:
  +    ps=default.project    
  +
     workspace=load(ws)
     dumpDeps(workspace, ps);          
     sys.exit(0)
  
  
  

Mime
View raw message