From 94038b95b3b236295bb2f7d5b0580f9de51a9dc2 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Sun, 16 Jul 2006 12:04:09 +0000 Subject: [PATCH] - Add some missing options to manpage/infopage (#199037) --- indent-2.2.9-man.patch | 59 ++++++++++++++++++++++++++++++++++++++++++ indent.spec | 7 ++++- 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 indent-2.2.9-man.patch diff --git a/indent-2.2.9-man.patch b/indent-2.2.9-man.patch new file mode 100644 index 0000000..c74a97b --- /dev/null +++ b/indent-2.2.9-man.patch @@ -0,0 +1,59 @@ +Only in indent-2.2.9/doc: all_opts +diff -Bburpd indent-2.2.9-orig/doc/indent.texinfo indent-2.2.9/doc/indent.texinfo +--- indent-2.2.9-orig/doc/indent.texinfo 2006-07-16 07:25:25.000000000 -0400 ++++ indent-2.2.9/doc/indent.texinfo 2006-07-16 07:57:33.000000000 -0400 +@@ -754,7 +754,7 @@ if (x > 0) + + @kindex -ce + @kindex --cuddle-else +-@kindex -dce ++@kindex -nce + @kindex --dont-cuddle-else + If you are using the @option{-br} option, you probably want to also use + the @option{-ce} option. This causes the @code{else} in an if-then-else +@@ -1666,6 +1666,11 @@ Line up continued lines at parentheses.@ + Leave space between @samp{#} and preprocessor directive.@* + @xref{Indentation}. + ++@item -nlps ++@itemx --remove-preprocessor-space ++Remove space between @samp{#} and preprocessor directive.@* ++@xref{Indentation}. ++ + @item -nbad + @itemx --no-blank-lines-after-declarations + Do not force blank lines after declarations.@* +@@ -1827,6 +1832,11 @@ statement is broken. + Preserve access and modification times on output files. + @xref{Miscellaneous options}. + ++@item -ppi@var{n} ++@itemx --preprocessor-indentation@var{n} ++Request indentation of preprocessor conditional statements.@* ++@xref{Indentation}. ++ + @item -prs + @itemx --space-after-parentheses + Put a space after every '(' and before every ')'.@* +@@ -1979,8 +1989,10 @@ the corresponding short option. + \line{ --original \leaderfill -orig} + \line{ --parameter-indentation \leaderfill -ip@var{n}\ } + \line{ --paren-indentation \leaderfill -pi@var{n}\ } ++\line{ --preprocessor-indentation@var{n} \leaderfill -ppi@var{n}\ } + \line{ --preserve-mtime \leaderfill -pmt\ } + \line{ --procnames-start-lines \leaderfill -psl\ } ++\line{ --remove-preprocessor-space \leaderfill -nlps\ } + \line{ --space-after-cast \leaderfill -cs\ \ } + \line{ --space-after-for \leaderfill -saf\ } + \line{ --space-after-if \leaderfill -sai\ } +@@ -2063,8 +2075,10 @@ the corresponding short option. + --original -orig + --parameter-indentation -ip@var{n} + --paren-indentation -pi@var{n} ++--preprocessor-indentation@var{n} -ppi@var{n} + --preserve-mtime -pmt + --procnames-start-lines -psl ++--remove-preprocessor-space -nlps + --space-after-cast -cs + --space-after-for -saf + --space-after-if -sai diff --git a/indent.spec b/indent.spec index ad9f0e6..aa13980 100644 --- a/indent.spec +++ b/indent.spec @@ -1,7 +1,7 @@ Summary: A GNU program for formatting C code. Name: indent Version: 2.2.9 -Release: 12.3.1 +Release: 13 License: GPL Group: Applications/Text URL: http://www.gnu.org/software/indent/ @@ -12,6 +12,7 @@ Patch3: indent-2.2.9-explicits.patch Patch4: indent-2.2.9-cdw.patch Patch5: indent-2.2.9-lcall.patch Patch6: indent-2.2.9-zh_TW.patch +Patch7: indent-2.2.9-man.patch Prereq: /sbin/install-info BuildRequires: gettext BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -33,6 +34,7 @@ you want a program to format your code. %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 %build @@ -71,6 +73,9 @@ fi %changelog +* Sun Jul 16 2006 Petr Machata - 2.2.9-13 +- Add some missing options to manpage/infopage (#199037) + * Wed Jul 12 2006 Jesse Keating - 2.2.9-12.3.1 - rebuild