Ticket #2189: 0001-Automatic-date-and-version-substitution-for-man-page.patch

File 0001-Automatic-date-and-version-substitution-for-man-page.patch, 5.9 KB (added by zaytsev, 14 years ago)
  • configure.ac

    From 089c1b417ad773ec8eae7f17fbcb17af8eb74c2e Mon Sep 17 00:00:00 2001
    From: Yury V. Zaytsev <yury@shurup.com>
    Date: Tue, 11 May 2010 16:45:05 +0200
    Subject: [PATCH] Automatic date and version substitution for man pages
    
    Currently the date and the version of Midnight Commander in the man
    pages has to be changed manually every release. This is being done
    sporadically and as the result, the man pages shipped for e.g. 4.7.2
    release contain the 4.7.0-pre1 signature, which is quite confusing.
    
    With this patch, the version is substituted with @DISTR_VERSION@ for all
    the man pages  and the date is automatically updated to the English man
    pages. Other man pages still have the manually updated date of the last
    translation.
    
    Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
    ---
     configure.ac        |    3 +++
     doc/man/es/mc.1.in  |    2 +-
     doc/man/hu/mc.1.in  |    2 +-
     doc/man/it/mc.1.in  |    2 +-
     doc/man/mc.1.in     |    2 +-
     doc/man/mcedit.1.in |    2 +-
     doc/man/mcserv.8.in |    2 +-
     doc/man/mcview.1.in |    2 +-
     doc/man/pl/mc.1.in  |    2 +-
     doc/man/ru/mc.1.in  |    2 +-
     doc/man/sr/mc.1.in  |    2 +-
     11 files changed, 13 insertions(+), 10 deletions(-)
    
    diff --git a/configure.ac b/configure.ac
    index 7c820c4..6c72049 100644
    a b AC_SUBST(LIBS) 
    544544dnl Libraries used only when building the mc binary 
    545545AC_SUBST(MCLIBS) 
    546546 
     547MAN_DATE=$(LC_ALL=C date "+%B %Y") 
     548AC_SUBST(MAN_DATE) 
     549 
    547550if test -n "$use_smbfs"; then 
    548551  AC_CONFIG_SUBDIRS([lib/vfs/mc-vfs/samba]) 
    549552fi 
  • doc/man/es/mc.1.in

    diff --git a/doc/man/es/mc.1.in b/doc/man/es/mc.1.in
    index a23ead1..07635c4 100644
    a b  
    55.\"     David H. Martín Alonso <dmartina@excite.com> 
    66.\" 
    77.\"TOPICS "Índice de Contenidos:" 
    8 .TH MC 1 "Octubre de 2009" "MC Versión 4.7.0\-pre3" "GNU Midnight Commander" 
     8.TH MC 1 "Octubre de 2009" "MC Versión @DISTR_VERSION@" "GNU Midnight Commander" 
    99.\"SKIP_SECTION" 
    1010.SH "NOMBRE" 
    1111mc \- Entorno visual para sistemas tipo Unix. 
  • doc/man/hu/mc.1.in

    diff --git a/doc/man/hu/mc.1.in b/doc/man/hu/mc.1.in
    index cf16e37..b26c671 100644
    a b  
    11.\"TOPICS "Tartalomjegyzék" 
    2 .TH MC 1 "January 2003" "MC Version 4.6.0" "GNU Midnight Commander" 
     2.TH MC 1 "January 2003" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" 
    33.\"SKIP_SECTION" 
    44.SH "NÉV" 
    55mc \- Fájlkezelő Unix típusú rendszerekhez 
  • doc/man/it/mc.1.in

    diff --git a/doc/man/it/mc.1.in b/doc/man/it/mc.1.in
    index 0a1d00a..c1ce3a6 100644
    a b  
    2020.\" Prego mantenere la linea di traduzione generale (per quanto possibile). 
    2121.\" 
    2222.\"TOPICS "Indice degli argomenti:" 
    23 .TH MC 1 "January 2003" "MC Version 4.6.0" "GNU Midnight Commander" 
     23.TH MC 1 "January 2003" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" 
    2424.\"SKIP_SECTION" 
    2525.SH "NOME" 
    2626mc \- interfaccia visuale per sistemi tipo Unix. 
  • doc/man/mc.1.in

    diff --git a/doc/man/mc.1.in b/doc/man/mc.1.in
    index e34a02b..e9be32d 100644
    a b  
    11.\"TOPICS "Topics:" 
    2 .TH MC 1 "August 2009" "MC Version 4.7.0\-pre1" "GNU Midnight Commander" 
     2.TH MC 1 "@MAN_DATE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" 
    33.\"SKIP_SECTION" 
    44.SH "NAME" 
    55mc \- Visual shell for Unix\-like systems. 
  • doc/man/mcedit.1.in

    diff --git a/doc/man/mcedit.1.in b/doc/man/mcedit.1.in
    index 1d7df29..14c89d7 100644
    a b  
    1 .TH MCEDIT 1 "August 2009" "MC Version 4.7.0\-pre1" "GNU Midnight Commander" 
     1.TH MCEDIT 1 "@MAN_DATE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" 
    22.SH NAME 
    33mcedit \- Internal file editor of GNU Midnight Commander. 
    44.SH USAGE 
  • doc/man/mcserv.8.in

    diff --git a/doc/man/mcserv.8.in b/doc/man/mcserv.8.in
    index 78823cf..73836a4 100644
    a b  
    1 .TH mcserv 8 "August 2009" "MC Version 4.7.0-pre1" "GNU Midnight Commander" 
     1.TH mcserv 8 "@MAN_DATE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" 
    22.SH NAME 
    33mcserv \- Midnight Commander file server. 
    44.SH USAGE 
  • doc/man/mcview.1.in

    diff --git a/doc/man/mcview.1.in b/doc/man/mcview.1.in
    index 68ba1ad..b285cf3 100644
    a b  
    1 .TH MCVIEW 1 "August 2009" "MC Version 4.7.0\-pre1" "GNU Midnight Commander" 
     1.TH MCVIEW 1 "@MAN_DATE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" 
    22.SH NAME 
    33mcview \- Internal file viewer of GNU Midnight Commander. 
    44.SH USAGE 
  • doc/man/pl/mc.1.in

    diff --git a/doc/man/pl/mc.1.in b/doc/man/pl/mc.1.in
    index 184c30d..582409f 100644
    a b  
    11.\"Przetłumaczone przez by Macieja Wojciechowskiego    wojciech@staszic.waw.pl 
    2 .TH MC 1 "January 2003" "MC Version 4.6.0" "GNU Midnight Commander" 
     2.TH MC 1 "January 2003" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" 
    33.\"SKIP_SECTION" 
    44.SH NAZWA 
    55mc \- wizualny interpetator poleceń dla systemów Unixopodobnych 
  • doc/man/ru/mc.1.in

    diff --git a/doc/man/ru/mc.1.in b/doc/man/ru/mc.1.in
    index 4cd15b3..3c3e1bc 100644
    a b  
    11.\"TOPICS "Разделы помощи:" 
    22.\" TODO: Перевести раздел EXTernal File System 
    3 .TH MC 1 "Сентябрь 2009" "MC Version 4.7.0-pre2" "GNU Midnight Commander" 
     3.TH MC 1 "Сентябрь 2009" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" 
    44.\"SKIP_SECTION" 
    55.SH "НАИМЕНОВАНИЕ" 
    66mc \- Визуальная оболочка для Unix\-подобных систем. 
  • doc/man/sr/mc.1.in

    diff --git a/doc/man/sr/mc.1.in b/doc/man/sr/mc.1.in
    index 22b7ea5..69f73f3 100644
    a b  
    11.\"TOPICS "Теме:" 
    2 .TH ПН 1 "јануар 2003." "ПН верзија 4.6.0" "ГНУ\-ов поноћни наредник" 
     2.TH ПН 1 "јануар 2003." "ПН верзија @DISTR_VERSION@" "ГНУ\-ов поноћни наредник" 
    33.\"SKIP_SECTION" 
    44.SH "НАЗИВ" 
    55mc \- Визуална љуска за Униксолике системе.