Ticket #4224: 0001-add-mcdiff-manpage.patch

File 0001-add-mcdiff-manpage.patch, 3.7 KB (added by vda, 2 years ago)

add mcdiff manpage

  • doc/man/Makefile.am

    From 092527e4ca302a75db1e464f6d470196ef7619b1 Mon Sep 17 00:00:00 2001
    From: Denys Vlasenko <dvlasenk@redhat.com>
    Date: Mon, 29 Mar 2021 03:41:03 +0200
    Subject: [PATCH] add mcdiff manpage
    Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
     doc/man/Makefile.am |  5 ++-
     doc/man/mcdiff.1.in | 97 +++++++++++++++++++++++++++++++++++++++++++++
     2 files changed, 100 insertions(+), 2 deletions(-)
     create mode 100644 doc/man/mcdiff.1.in
    diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
    index d33b9ab25..3fa259212 100644
    a b if USE_NLS 
    6 man_MANS = mc.1 mcedit.1 mcview.1 
     6man_MANS = mc.1 mcedit.1 mcview.1 mcdiff.1 
    88CLEANFILES = $(man_MANS) 
    EXTRA_DIST = \ 
    1111        date-of-man-include.am \ 
    1212        mc.1.in \ 
    1313        mcedit.1.in \ 
    14         mcview.1.in 
     14        mcview.1.in \ 
     15        mcdiff.1.in 
    1718DATE_FORMAT=%B %Y 
  • new file doc/man/mcdiff.1.in

    diff --git a/doc/man/mcdiff.1.in b/doc/man/mcdiff.1.in
    new file mode 100644
    index 000000000..72a5a5772
    - +  
     1.TH MCDIFF 1 "%DATE_OF_MAN_PAGE%" "MC Version %DISTR_VERSION%" "GNU Midnight Commander" 
     2.SH NAME 
     3mcdiff \- Internal diff viewer of GNU Midnight Commander. 
     4.SH USAGE 
     5.B mcdiff 
     6[\-bcCdfhstVx?] file1 file2 
     9mcdiff is a link to 
     10.BR mc , 
     11the main GNU Midnight Commander executable.  Executing GNU Midnight 
     12Commander under this name requests starting the internal diff viewer 
     13which compares 
     14.I file1 
     16.I file2 
     17specified on the command line. 
     18.SH OPTIONS 
     20.I "\-b" 
     21Force black and white display. 
     23.I "\-c" 
     24Force color mode on terminals where 
     25.B mcdiff 
     26defaults to black and white. 
     28.I "\-C <keyword>=<fgcolor>,<bgcolor>,<attributes>:<keyword>= ..." 
     29Specify a different color set.  See the 
     30.B Colors 
     31section in mc(1) for more information. 
     33.I "\-d" 
     34Disable mouse support. 
     36.I "\-f" 
     37Display the compiled\-in search paths for Midnight Commander files. 
     39.I "\-t" 
     40Used only if the code was compiled with S\-Lang and terminfo: it makes 
     41the Midnight Commander use the value of the 
     42.B TERMCAP 
     43variable for the terminal information instead of the information on 
     44the system wide terminal database 
     46.I "\-V" 
     47Displays the version of the program. 
     49.I "\-x" 
     50Forces xterm mode.  Used when running on xterm\-capable terminals (two 
     51screen modes, and able to send mouse escape sequences). 
     53.SH COLORS 
     54The default colors may be changed by appending to the 
     56environment variable.  Foreground and background colors pairs may be 
     57specified for example with: 
     65.SH FILES 
     66.I %prefix%/share/mc/mc.hlp 
     68The help file for the program. 
     70.I %prefix%/share/mc/mc.ini 
     72The default system\-wide setup for GNU Midnight Commander, used only if 
     73the user's own ~/.config/mc/ini file is missing. 
     75.I %prefix%/share/mc/mc.lib 
     77Global settings for the Midnight Commander.  Settings in this file 
     78affect all users, whether they have ~/.config/mc/ini or not. 
     80.I ~/.config/mc/ini 
     82User's own setup.  If this file is present, the setup is loaded from 
     83here instead of the system\-wide startup file. 
     85.SH LICENSE 
     86This program is distributed under the terms of the GNU General Public 
     87License as published by the Free Software Foundation.  See the built\-in 
     88help of the Midnight Commander for details on the License and the lack 
     89of warranty. 
     91The latest version of this program can be found at 
     93.SH SEE ALSO 
     94mc(1), mcedit(1), mcview(1) 
     96.SH BUGS 
     97Bugs should be reported to mc\-devel@gnome.org