Changeset 19806

Show
Ignore:
Timestamp:
02/13/07 08:33:01 (2 years ago)
Author:
patrick
Message:

Replaced hard-coded exit values with symbolic identifiers. Added an exit
status for an invalid command line argument.

Files:

Legend:

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

    r19805 r19806  
    4444EXIT_STATUS_MISSING_REQ_VALUE    = 5 
    4545EXIT_STATUS_UNSUPPORTED_COMPILER = 6 
     46EXIT_STATUS_INVALID_ARGUMENT     = 7 
    4647 
    4748gJugglerDir      = os.path.dirname(os.path.abspath(sys.argv[0])) 
     
    22432244         except OSError, osEx: 
    22442245            print "Could not execute %s: %s" % (cmd, osEx) 
    2245             sys.exit(3
     2246            sys.exit(EXIT_STATUS_MSVS_START_ERROR
    22462247      else: 
    22472248         cmd = devenv_cmd_no_exe + ' ' + solution_file 
     
    22882289   except getopt.GetoptError: 
    22892290      usage() 
    2290       sys.exit(4
     2291      sys.exit(EXIT_STATUS_INVALID_ARGUMENT
    22912292 
    22922293   skip_vs = False 
     
    23742375      elif exitEx.code == EXIT_STATUS_UNSUPPORTED_COMPILER: 
    23752376         status = 'unsupported compiler' 
     2377      elif exitEx.code == EXIT_STATUS_INVALID_ARGUMENT: 
     2378         status = 'invalid command line argument' 
    23762379      else: 
    23772380         status = 'error encountered'