Changeset 19783

Show
Ignore:
Timestamp:
01/30/07 10:08:46 (2 years ago)
Author:
patrick
Message:

Added a -n/—nobuild command line option so that the user can skip the
build step and go straight to installation (assuming that things are ready
to be installed).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/build_windows.py

    r19743 r19783  
    22802280 
    22812281   try: 
    2282       cmd_opts, cmd_args = getopt.getopt(sys.argv[1:], "cao:h", 
    2283                                          ["nogui", "auto", "options-file=", 
    2284                                           "help"]) 
     2282      cmd_opts, cmd_args = getopt.getopt(sys.argv[1:], "cano:h", 
     2283                                         ["nogui", "nobuild", "auto", 
     2284                                          "options-file=", "help"]) 
    22852285   except getopt.GetoptError: 
    22862286      usage() 
    22872287      sys.exit(4) 
     2288 
     2289   skip_vs = False 
    22882290 
    22892291   global gOptionsFileName 
     
    22982300            print "No file %s exists.  Will use default options." % \ 
    22992301                  gOptionsFileName 
     2302      elif o in ("-n", "--nobuild"): 
     2303         skip_vs = True 
    23002304      elif o in ("-h", "--help"): 
    23012305         usage() 
     
    23102314      generateAntBuildFiles(vc_dir) 
    23112315 
    2312       devenv_cmd    = getVSCmd() 
    2313       solution_file = r'%s' % os.path.join(gJugglerDir, vc_dir, 'Juggler.sln') 
    2314  
    23152316      try: 
    2316          status = os.spawnl(os.P_WAIT, devenv_cmd, 'devenv', solution_file) 
     2317         status = 0 
     2318 
     2319         if not skip_vs: 
     2320            devenv_cmd    = getVSCmd() 
     2321            solution_file = r'%s' % os.path.join(gJugglerDir, vc_dir, 
     2322                                                 'Juggler.sln') 
     2323 
     2324            status = os.spawnl(os.P_WAIT, devenv_cmd, 'devenv', solution_file) 
    23172325 
    23182326         if status == 0: