summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-12 16:40:29 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-12 16:40:29 +0200
commitc2fc2081d3a134d10ec91cb7fdb07b5e1343aec3 (patch)
tree475dc80d019d322af403d05a5a81069dc6977a0d
parent180d087da5ad4f32b4f7b411d9b0e8c3644fb6e6 (diff)
downloadbundler-fix_man_check.tar.gz
Ignore whitespace when checking docsfix_man_check
Different versions of `groff` seem to generate slight differences in whitespace. It is too much burden for contributors in my opinion to make them install the exact groff version CI is running, and whitespace amount in man pages doesn't seem to change the rendered output anyways, so it should be good I think.
-rw-r--r--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 719f6e040a..b2a630090e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -233,13 +233,13 @@ namespace :man do
desc "Verify man pages are in sync"
task :check => :build do
- sh("git diff --quiet man") do |outcome, _|
+ sh("git diff --quiet --ignore-all-space man") do |outcome, _|
if outcome
puts
puts "Manpages are in sync!"
puts
else
- sh("GIT_PAGER=cat git diff man")
+ sh("GIT_PAGER=cat git diff --ignore-all-space man")
puts
puts "Man pages are out of sync. Above you can see the diff that got generated from rebuilding them. Please review and commit the results."