# HG changeset patch # User Jan Vrany # Date 1464082425 -3600 # Node ID abb35e8d97a75b5ac8406ed4a3796a2a5b06bf0b # Parent 0e2993dac13eadcf5ca955de71ab74b8d661b05a Add `bin` directory to PATH so build scripts may use scripts located there This is required especially on Windows as Windows do not ship with some basic tools (e.g. zip) by default. As a courtesy to the user, provide and our own. diff -r 0e2993dac13e -r abb35e8d97a7 Rakefile --- a/Rakefile Mon May 23 23:27:14 2016 +0100 +++ b/Rakefile Tue May 24 10:33:45 2016 +0100 @@ -1,11 +1,6 @@ -# Following 3 lines are required to setup a Smalltalk/X rakefiles -defined? STX_RAKEFILES or STX_RAKEFILES = ENV['STX_RAKEFILES'] || "." -$:.push(STX_RAKEFILES) - +$:.push('.') require 'rakelib/support.rb' -#include Rake::DSL - import 'rakelib/help.rake' import 'rakelib/info.rake' import 'rakelib/debug.rake' diff -r 0e2993dac13e -r abb35e8d97a7 rakelib/support.rb --- a/rakelib/support.rb Mon May 23 23:27:14 2016 +0100 +++ b/rakelib/support.rb Tue May 24 10:33:45 2016 +0100 @@ -1,3 +1,8 @@ +require 'rakelib/extensions.rb' +require 'rakelib/rbspec.rb' +require 'rakelib/vcs.rb' +require 'rakelib/smalltalk-utils.rb' + # Following hack is required to allow passing variable # values in `make` style, i.e., to allow for # @@ -10,14 +15,11 @@ end end -module Rake -end - -module Rake::StX -end +# Update PATH for build so build scripts may access +# scripts in `bin` directory. This is required especially +# on Windows as Windows do not ship with some basic tools +# (e.g. zip) by default. As a courtesy to the user, provide +# our own +ENV['PATH'] = "#{ENV['PATH']}#{File::PATH_SEPARATOR}#{File.expand_path('bin')}" -require 'rakelib/extensions.rb' -require 'rakelib/rbspec.rb' -require 'rakelib/vcs.rb' -require 'rakelib/smalltalk-utils.rb'