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

File 0001-add-mcdiff-manpage.patch, 3.7 KB (added by vda, 4 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 
    33SUBDIRS = $(DOC_LINGUAS) 
    44endif 
    55 
    6 man_MANS = mc.1 mcedit.1 mcview.1 
     6man_MANS = mc.1 mcedit.1 mcview.1 mcdiff.1 
    77 
    88CLEANFILES = $(man_MANS) 
    99 
    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 
    1516 
    1617DATE_LANG=en_US.UTF-8 
    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 
     7.SH DESCRIPTION 
     8.LP 
     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 
     15and 
     16.I file2 
     17specified on the command line. 
     18.SH OPTIONS 
     19.TP 
     20.I "\-b" 
     21Force black and white display. 
     22.TP 
     23.I "\-c" 
     24Force color mode on terminals where 
     25.B mcdiff 
     26defaults to black and white. 
     27.TP 
     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. 
     32.TP 
     33.I "\-d" 
     34Disable mouse support. 
     35.TP 
     36.I "\-f" 
     37Display the compiled\-in search paths for Midnight Commander files. 
     38.TP 
     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 
     45.TP 
     46.I "\-V" 
     47Displays the version of the program. 
     48.TP 
     49.I "\-x" 
     50Forces xterm mode.  Used when running on xterm\-capable terminals (two 
     51screen modes, and able to send mouse escape sequences). 
     52.PP 
     53.SH COLORS 
     54The default colors may be changed by appending to the 
     55.B MC_COLOR_TABLE 
     56environment variable.  Foreground and background colors pairs may be 
     57specified for example with: 
     58.PP 
     59.nf 
     60MC_COLOR_TABLE="$MC_COLOR_TABLE:\\ 
     61normal=lightgray,black:\\ 
     62selected=black,green" 
     63.fi 
     64.PP 
     65.SH FILES 
     66.I %prefix%/share/mc/mc.hlp 
     67.IP 
     68The help file for the program. 
     69.PP 
     70.I %prefix%/share/mc/mc.ini 
     71.IP 
     72The default system\-wide setup for GNU Midnight Commander, used only if 
     73the user's own ~/.config/mc/ini file is missing. 
     74.PP 
     75.I %prefix%/share/mc/mc.lib 
     76.IP 
     77Global settings for the Midnight Commander.  Settings in this file 
     78affect all users, whether they have ~/.config/mc/ini or not. 
     79.PP 
     80.I ~/.config/mc/ini 
     81.IP 
     82User's own setup.  If this file is present, the setup is loaded from 
     83here instead of the system\-wide startup file. 
     84.PP 
     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. 
     90.SH AVAILABILITY 
     91The latest version of this program can be found at 
     92ftp://ftp.gnu.org/gnu/mc/. 
     93.SH SEE ALSO 
     94mc(1), mcedit(1), mcview(1) 
     95.PP 
     96.SH BUGS 
     97Bugs should be reported to mc\-devel@gnome.org