lib/autobuild/config.rb in autobuild-1.2.6 vs lib/autobuild/config.rb in autobuild-1.2.7
- old
+ new
@@ -16,19 +16,21 @@
# it is defined relatively to Autobuild.prefix.
# verbose:: if true, displays all subprocesses output
# debug:: more verbose than 'verbose': displays Rake's debugging output
# do_update:: if we should update the packages
# do_build:: if we should build the packages
+# do_doc:: if we should produce the documentation
+# doc_errors:: if errors during the documentation generation are treated as errors
# daemonize:: if the build should go into daemon mode (only if the daemons gem is available)
# clean_log:: remove all logs before starting the build
# packages:: a list of packages to build specifically
# default_packages:: the list of packages to build if Autobuild.packages is empty.
# It this array is empty too, build all defined packages.
module Autobuild
class << self
%w{ nice srcdir prefix
- verbose debug do_update do_build only_doc do_doc
+ verbose debug do_update do_build only_doc do_doc doc_errors
daemonize clean_log packages default_packages
doc_prefix }.each do |name|
attr_accessor name
end
@@ -44,11 +46,11 @@
end
DEFAULT_OPTIONS = { :nice => 0,
:srcdir => Dir.pwd, :prefix => Dir.pwd, :logdir => nil,
:verbose => false, :debug => false, :do_build => true, :do_update => true,
:daemonize => false, :packages => [], :default_packages => [],
- :only_doc => false, :do_doc => true,
+ :only_doc => false, :do_doc => true, :doc_errors => false,
:doc_prefix => 'doc' }
@programs = Hash.new
DEFAULT_OPTIONS.each do |name, value|
send("#{name}=", value)
@@ -152,10 +154,11 @@
opts.on("--[no-]daemon", "go into daemon mode") do |@daemonize| end
end
opts.on("--no-update", "update already checked-out sources") do |@do_update| end
opts.on("--no-build", "only prepare packages, do not build them") do |@do_build| end
opts.on("--only-doc", "only generate documentation") do |@only_doc| end
- opts.on("--no-doc", "don't generate documentation") do |@doc_doc| end
+ opts.on("--no-doc", "don't generate documentation") do |@do_doc| end
+ opts.on("--doc-errors", "treat documentation failure as error") do |@doc_errors| end
opts.separator ""
opts.separator "Program output"
opts.on("--[no-]verbose", "display output of commands on stdout") do |@verbose| end
opts.on("--[no-]debug", "debug information (for debugging purposes)") do |@debug| end