bin/autobuild in autobuild-0.6.4 vs bin/autobuild in autobuild-0.6.5
- old
+ new
@@ -7,10 +7,11 @@
DEFAULT_HTTP_PORT = 2000
# Load the command line options
conffile, *packages = Autobuild.commandline(ARGV)
+Autobuild.packages = packages
# make conffile an absolute path since daemonize mode makes
# / the current directory
conffile = File.expand_path(conffile, Dir.pwd)
if Autobuild.daemonize
@@ -28,9 +29,12 @@
end
targets = ['import']
targets += ['prepare', 'build'] if Autobuild.do_build
targets.each do |phase|
+ packages = Autobuild.packages
+ packages = Autobuild.default_packages if packages.empty?
+
if packages.empty?
Rake::Task[phase].invoke
else
packages.each do |pkg|
Rake::Task["#{pkg}-#{phase}"].invoke