Commit 67c15d8b authored by Iustin Pop's avatar Iustin Pop

Fix bug in man build rule

Currently the man page build rule is run without ‘-e’, so the actual
checks in there are just warnings (check-man-warnings,
check-man-dashes).

The patch fixes this and also fixes the man pages which made me see the
problem.

Additionally, check-man-dashes is now verbose, otherwise it's hard to
find out actually where in the page the error is.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent e61db4b2
......@@ -1293,7 +1293,7 @@ man/%.gen: man/%.rst lib/query.py lib/build/sphinx_ext.py \
man/%.7.in man/%.8.in man/%.1.in: man/%.gen man/footer.rst
@test -n "$(PANDOC)" || \
{ echo 'pandoc' not found during configure; exit 1; }
set -o pipefail ; \
set -o pipefail -e; \
trap 'echo auto-removing $@; rm $@' EXIT; \
$(PANDOC) -s -f rst -t man $< man/footer.rst | \
sed -e 's/\\@/@/g' > $@; \
......
#!/bin/bash
#
# Copyright (C) 2012 Google Inc.
# Copyright (C) 2012, 2013 Google Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -20,5 +20,5 @@
set -e
! grep -F -q '\[em]' "$1" || \
! grep -F '\[em]' "$1" || \
{ echo "Unescaped dashes found in $1, use \\-- instead of --" 1>&2; exit 1; }
......@@ -53,7 +53,7 @@ respective state, ``--pending`` includes both.
CHANGE-PRIORITY
~~~~~~~~~~~~~~~
| **change-priority** --priority {low | normal | high}
| **change-priority** \--priority {low | normal | high}
| {[\--force] {\--pending | \--queued | \--waiting} | *job-id* ...}
Changes the priority of one or multiple pending jobs. Jobs currently
......
......@@ -26,13 +26,13 @@ ADD
~~~
| **add**
| [--network=*NETWORK*]
| [--gateway=*GATEWAY*]
| [--add-reserved-ips=*RESERVEDIPS*]
| [--network6=*NETWORK6*]
| [--gateway6=*GATEWAY6*]
| [--mac-prefix=*MACPREFIX*]
| [--submit]
| [\--network=*NETWORK*]
| [\--gateway=*GATEWAY*]
| [\--add-reserved-ips=*RESERVEDIPS*]
| [\--network6=*NETWORK6*]
| [\--gateway6=*GATEWAY6*]
| [\--mac-prefix=*MACPREFIX*]
| [\--submit]
| {*network*}
Creates a new network with the given name. The network will be unused
......@@ -62,13 +62,13 @@ MODIFY
~~~~~~
| **modify**
| [--gateway=*GATEWAY*]
| [--add-reserved-ips=*RESERVEDIPS*]
| [--remove-reserved-ips=*RESERVEDIPS*]
| [--network6=*NETWORK6*]
| [--gateway6=*GATEWAY6*]
| [--mac-prefix=*MACPREFIX*]
| [--submit]
| [\--gateway=*GATEWAY*]
| [\--add-reserved-ips=*RESERVEDIPS*]
| [\--remove-reserved-ips=*RESERVEDIPS*]
| [\--network6=*NETWORK6*]
| [\--gateway6=*GATEWAY6*]
| [\--mac-prefix=*MACPREFIX*]
| [\--submit]
| {*network*}
Modifies parameters from the network.
......@@ -83,7 +83,7 @@ options.
REMOVE
~~~~~~
| **remove** [--submit] {*network*}
| **remove** [\--submit] {*network*}
Deletes the indicated network, which must be not connected to any node group.
......@@ -92,7 +92,7 @@ See **ganeti**\(7) for a description of ``--submit`` and other common options.
LIST
~~~~
| **list** [--no-headers] [--separator=*SEPARATOR*] [-v]
| **list** [\--no-headers] [\--separator=*SEPARATOR*] [-v]
| [-o *[+]FIELD,...*] [network...]
Lists all existing networks in the cluster. If no group names are given,
......
......@@ -585,7 +585,7 @@ annotated in the command line output.
RESTRICTED-COMMAND
~~~~~~~~~~~~~~~~~~
| **restricted-command** [-M] [--sync]
| **restricted-command** [-M] [\--sync]
| { -g *group* *command* | *command* *nodes*... }
Executes a restricted command on the specified nodes. Restricted commands are
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment