]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: pass program name to help2man after other options
authorBernhard Voelker <mail@bernhard-voelker.de>
Mon, 22 Sep 2014 23:49:47 +0000 (01:49 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Mon, 22 Sep 2014 23:49:47 +0000 (01:49 +0200)
* man/local.mk (.x.1): Move the program name argument down after
the last option argument when calling $(run_help2man).
While the other way would be accepted for the GNU help2man program,
it is not for the 'dummy-man' script (called as a fallback on
systems lacking perl).
The wrong order was introduced in commit v8.21-119-gb3578fc while
adding the --info-page option.

man/local.mk

index 61ecd00201014296def844e6ed4fba883e2a7dde..24cdce00f37b010e47dbcd5e8ff6919b93864c32 100644 (file)
@@ -187,8 +187,9 @@ endif
          && $(run_help2man)                                            \
                     --source='$(PACKAGE_STRING)'                       \
                     --include=$(srcdir)/man/$$name.x                   \
-                    --output=$$t/$$name.1 $$t/$$argv                   \
+                    --output=$$t/$$name.1                              \
                     --info-page='\(aq(coreutils) '$$name' invocation\(aq' \
+                    $$t/$$argv                                         \
          && sed \
               -e 's|$*\.td/||g' \
               -e '/For complete documentation/d' \