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

call autogen.sh if available

parent 655317b3
No related branches found
No related tags found
No related merge requests found
......@@ -12,9 +12,6 @@ require 'logger'
@rcLocal = "#{pwd}/.rake.json"
# local config file has precedence
@rc = @rcLocal if File.exist?(@rcLocal)
puts '#=========================='
pp @rc
puts '#=========================='
@userConfig = ( File.exist?(@rc) ) ? JSON.load(File.open(@rc)) : {}
if @userConfig.empty? then
warn "No host information!!"
......@@ -178,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