rakelib/support.rb
changeset 23 7dad21b22558
parent 11 f7dc950d8df8
child 29 cd2e05aff563
equal deleted inserted replaced
22:53b717983dfd 23:7dad21b22558
    15   if name_and_value
    15   if name_and_value
    16      self.class.const_set(name_and_value[1], name_and_value[2])  
    16      self.class.const_set(name_and_value[1], name_and_value[2])  
    17   end
    17   end
    18 end
    18 end
    19 
    19 
    20 # Update PATH for build so build scripts may access 
    20 # Update PATH for build so build scripts may access  scripts and programs 
    21 # scripts in `bin` directory. This is required especially
    21 # in `bin` directory. This is required especially on Windows as Windows do 
    22 # on Windows as Windows do not ship with some basic tools
    22 # not ship with some basic tools (e.g. zip) by default. As a courtesy to the
    23 # (e.g. zip) by default. As a courtesy to the user, provide
    23 # user, provide our own. 
    24 # our own
    24 # NOTE that this MUST be the first entry in the PATH to be able to override
    25 ENV['PATH'] = "#{ENV['PATH']}#{File::PATH_SEPARATOR}#{File.expand_path('bin')}"
    25 # MINGW/MSYS make.exe with Borland's ancient make.exe (sigh, St/X still deals
       
    26 # with dinosaurs)
       
    27 ENV['PATH'] = "#{File.expand_path('bin')};#{File::PATH_SEPARATOR}#{ENV['PATH']}"
    26 
    28 
    27 # Return true if running under Jenkins, false otherwise
    29 # Return true if running under Jenkins, false otherwise
    28 def jenkins?
    30 def jenkins?
    29   return (ENV.has_key? 'WORKSPACE'   and 
    31   return (ENV.has_key? 'WORKSPACE'   and 
    30           ENV.has_key? 'JOB_NAME'    and 
    32           ENV.has_key? 'JOB_NAME'    and