Ignore:
Timestamp:
Aug 18, 2010 4:16:04 AM (14 years ago)
Author:
bennylp
Message:

Automated test (re #1111): modified configure.py to detect GNU host instead of always presenting vs (visual studio) as the default host

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/tests/automated/configure.py

    r3143 r3281  
    285285         
    286286        if not build_type: 
    287             print "Enter the build type (values: vs, gnu, s60) [vs]: ", 
     287            defval = "vs" 
     288            if "SHELL" in os.environ: 
     289                shell = os.environ["SHELL"] 
     290                if shell.find("sh") > -1: 
     291                    defval = "gnu" 
     292            print "Enter the build type (values: vs, gnu, s60) [%s]: " % (defval), 
    288293            build_type = sys.stdin.readline().replace("\n", "").replace("\r", "") 
    289294            if not build_type: 
    290                    build_type = "vs" 
     295                   build_type = defval 
    291296                 
    292297 
Note: See TracChangeset for help on using the changeset viewer.