Skip to content
Snippets Groups Projects
Commit e8194f2d authored by Ralf Mueller's avatar Ralf Mueller
Browse files

call autogen.sh if available instead of autoreconf

parent e6b42acc
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,11 @@ require 'parallel'
require 'logger'
# configuration {{{ ============================================================
# load user setting if available
RC = "#{ENV['HOME']}/.rake.json"
@userConfig = ( File.exist?(RC) ) ? JSON.load(File.open(RC)) : {}
@rc = "#{ENV['HOME']}/.rake.json"
@rcLocal = "#{pwd}/.rake.json"
# local config file has precedence
@rc = @rcLocal if File.exist?(@rcLocal)
@userConfig = ( File.exist?(@rc) ) ? JSON.load(File.open(@rc)) : {}
if @userConfig.empty? then
warn "No host information!!"
exit(1)
......@@ -172,8 +175,9 @@ def builder2task(builder,useHostAsName=false,syncSource=true)
@_help[:reconf] = "create configure script on host" unless @_help.has_key?(:reconf)
task toDo[:reconf] do |t|
dbg("call 'autoreconf -v -i'")
execute("autoreconf -v -i",builder)
cmd = "[[ -f autogen.sh ]] && ./autogen.sh || autoreconf -vfi"
dbg(cmd)
execute(cmd,builder)
end
@_help[:conf]= \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment