diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-10 17:26:55 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-10 12:05:10 +0200 |
commit | 23de1d0177646ab73bd9ed193e29335c3a64dd5c (patch) | |
tree | cc4303301dc728d71e48183f42dac9be1cc67b41 /task | |
parent | 27b95a172c9200e77034bb113fe1633d2150552f (diff) | |
download | bundler-23de1d0177646ab73bd9ed193e29335c3a64dd5c.tar.gz |
Commit man pages to source control
This has the benefit that:
* Allows the installation of bundler as a default gem from rubygems to
include man pages.
* Removes the need to build man pages during our tests.
* Makes working with the manifest easier, because we only have source
controlled files, and not a mix of source control and generated files.
To make sure they never fall out of sync, we replace the previous
`man:build` CI task with a `man:check` task that makes sure the
generated man pages are up to date.
Diffstat (limited to 'task')
-rw-r--r-- | task/release.rake | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/task/release.rake b/task/release.rake index 402db1ca85..8aeaa0bfee 100644 --- a/task/release.rake +++ b/task/release.rake @@ -1,16 +1,17 @@ # frozen_string_literal: true require "bundler/gem_tasks" -task :build => ["build_metadata", "man:build"] do +task :build => ["build_metadata"] do Rake::Task["build_metadata:clean"].tap(&:reenable).real_invoke end -task :release => ["man:build", "release:verify_files", "release:verify_github", "build_metadata"] +task :release => ["release:verify_docs", "release:verify_files", "release:verify_github", "build_metadata"] namespace :release do + task :verify_docs => :"man:check" + task :verify_files do - git_list = IO.popen("git ls-files -z", &:read).split("\x0").select {|f| f.match(%r{^(lib|exe)/}) } + git_list = IO.popen("git ls-files -z", &:read).split("\x0").select {|f| f.match(%r{^(lib|man|exe)/}) } git_list += %w[CHANGELOG.md LICENSE.md README.md bundler.gemspec] - git_list += Dir.glob("man/**/*") gem_list = Gem::Specification.load("bundler.gemspec").files |