From 36c8e5cd00fd600be63160b0ef9427a70ab45870 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 21 May 2014 10:24:21 +0300 Subject: docs: document common options in one place Move the documentation of command line options common to all tools into one file. This unifies the manpage documentation and should make its maintenance easier. Also, this change adds missing options to several manpages. Signed-off-by: Markus Lehtonen --- docs/manpages/gbp-clone.sgml | 11 ++---- docs/manpages/gbp-config.sgml | 33 +--------------- docs/manpages/gbp-create-remote-repo.sgml | 19 ++------- docs/manpages/gbp-dch.sgml | 13 ++----- docs/manpages/gbp-import-dsc.sgml | 13 ++----- docs/manpages/gbp-import-orig.sgml | 13 ++----- docs/manpages/gbp-pq.sgml | 38 ++---------------- docs/manpages/gbp-pull.sgml | 11 ++---- docs/manpages/man.common-options.ent | 65 +++++++++++++++++++++++++++++++ docs/manpages/manpages.ent | 2 + 10 files changed, 90 insertions(+), 128 deletions(-) create mode 100644 docs/manpages/man.common-options.ent diff --git a/docs/manpages/gbp-clone.sgml b/docs/manpages/gbp-clone.sgml index 2dec88dd..20e61472 100644 --- a/docs/manpages/gbp-clone.sgml +++ b/docs/manpages/gbp-clone.sgml @@ -21,7 +21,7 @@ &gbp-clone; - + &man.common.options.synopsis; branch_name @@ -43,6 +43,8 @@ OPTIONS + &man.common.options.description; + @@ -74,13 +76,6 @@ Git history depth, for creating shallow git clones. - - - - - verbose execution - - diff --git a/docs/manpages/gbp-config.sgml b/docs/manpages/gbp-config.sgml index 599d1168..9b3d7edd 100644 --- a/docs/manpages/gbp-config.sgml +++ b/docs/manpages/gbp-config.sgml @@ -21,9 +21,7 @@ &gbp-config; - - [auto|on|off] - =COLOR_SCHEME + &man.common.options.synopsis; command.option command @@ -41,34 +39,7 @@ OPTIONS - - - - - verbose execution - - - - [auto|on|off] - - - Whether to use colored output. - - - - =COLOR_SCHEME - - - Colors to use in output (when color is enabled). The format for - COLOR_SCHEME is - '<debug>:<info>:<warning>:<error>'. - Numerical values and color names are accepted, empty fields imply - the default color. For example --git-color-scheme='cyan:34::' would - show debug messages in cyan, info messages in blue and other messages - in default (i.e. warning and error messages in red). - - - + &man.common.options.description; diff --git a/docs/manpages/gbp-create-remote-repo.sgml b/docs/manpages/gbp-create-remote-repo.sgml index a874b004..e8f6a092 100644 --- a/docs/manpages/gbp-create-remote-repo.sgml +++ b/docs/manpages/gbp-create-remote-repo.sgml @@ -20,8 +20,7 @@ &gbp-create-remote-repo; - - [auto|on|off] + &man.common.options.synopsis; url-pattern name directory @@ -52,6 +51,8 @@ OPTIONS + &man.common.options.description; + =pattern @@ -111,20 +112,6 @@ Whether to push the pristine tar branch. - - - - - verbose execution - - - - [auto|on|off] - - - Whether to use colored output. - - diff --git a/docs/manpages/gbp-dch.sgml b/docs/manpages/gbp-dch.sgml index 5d539949..8ffdc4f6 100644 --- a/docs/manpages/gbp-dch.sgml +++ b/docs/manpages/gbp-dch.sgml @@ -20,7 +20,7 @@ &gbp-dch; - + &man.common.options.synopsis; branch_name tag-format tag-format @@ -90,6 +90,8 @@ OPTIONS + &man.common.options.description; + =branch_name @@ -110,15 +112,6 @@ - - - - - - verbose execution - - - tag-format diff --git a/docs/manpages/gbp-import-dsc.sgml b/docs/manpages/gbp-import-dsc.sgml index 5549defd..e635a3d9 100644 --- a/docs/manpages/gbp-import-dsc.sgml +++ b/docs/manpages/gbp-import-dsc.sgml @@ -20,6 +20,7 @@ &gbp-import-dsc; + &man.common.options.synopsis; @@ -34,7 +35,6 @@ branch_name tag-format - debian-source.dsc @@ -60,6 +60,8 @@ OPTIONS + &man.common.options.description; + =branch_name @@ -80,15 +82,6 @@ - - - - - - verbose execution - - - diff --git a/docs/manpages/gbp-import-orig.sgml b/docs/manpages/gbp-import-orig.sgml index 967afc8c..b744752a 100644 --- a/docs/manpages/gbp-import-orig.sgml +++ b/docs/manpages/gbp-import-orig.sgml @@ -21,7 +21,7 @@ &gbp-import-orig; - + &man.common.options.synopsis; version branch_name @@ -64,6 +64,8 @@ OPTIONS + &man.common.options.description; + =version version @@ -114,15 +116,6 @@ - - - - - - verbose execution - - - diff --git a/docs/manpages/gbp-pq.sgml b/docs/manpages/gbp-pq.sgml index 07781893..e0942083 100644 --- a/docs/manpages/gbp-pq.sgml +++ b/docs/manpages/gbp-pq.sgml @@ -19,9 +19,7 @@ &gbp-pq; - - [auto|on|off] - =COLOR_SCHEME + &man.common.options.synopsis; topic num @@ -125,38 +123,8 @@ OPTIONS - - - - - - verbose execution - - - - - [auto|on|off] - - - - Whether to use colored output. - - - - - =COLOR_SCHEME - - - Colors to use in output (when color is enabled). The format for - COLOR_SCHEME is - '<debug>:<info>:<warning>:<error>'. - Numerical values and color names are accepted, empty fields imply - the default color. For example --git-color-scheme='cyan:34::' would - show debug messages in cyan, info messages in blue and other messages - in default (i.e. warning and error messages in red). - - - + &man.common.options.description; + diff --git a/docs/manpages/gbp-pull.sgml b/docs/manpages/gbp-pull.sgml index 7a9d235f..fd658c8d 100644 --- a/docs/manpages/gbp-pull.sgml +++ b/docs/manpages/gbp-pull.sgml @@ -21,7 +21,7 @@ &gbp-pull; - + &man.common.options.synopsis; @@ -44,6 +44,8 @@ OPTIONS + &man.common.options.description; + @@ -89,13 +91,6 @@ Git history depth, for deepening shallow git clones. - - - - - verbose execution - - diff --git a/docs/manpages/man.common-options.ent b/docs/manpages/man.common-options.ent new file mode 100644 index 00000000..74bd9f0d --- /dev/null +++ b/docs/manpages/man.common-options.ent @@ -0,0 +1,65 @@ + + + + [auto|on|off] + COLOR_SCHEME +" +> + + + + + Print version of the program, i.e. version of the git-buildpackage + suite + + + + + + + + + Verbose execution + + + + + + + + + Print help and exit + + + + + [auto|on|off] + + + + Whether to use colored output. + + + + + COLOR_SCHEME + + + + Colors to use in output (when color is enabled). The format for + COLOR_SCHEME is + '<debug>:<info>:<warning>:<error>'. + Numerical values and color names are accepted, empty fields imply + the default color. For example --git-color-scheme='cyan:34::' would + show debug messages in cyan, info messages in blue and other messages + in default (i.e. warning and error messages in red). + + + +" +> + diff --git a/docs/manpages/manpages.ent b/docs/manpages/manpages.ent index d5882548..6b8ea95f 100644 --- a/docs/manpages/manpages.ent +++ b/docs/manpages/manpages.ent @@ -12,3 +12,5 @@ + +%COMMON.OPTIONS; -- cgit v1.2.3