diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index 5d69ce8d6..a16e92e6b 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -2,3 +2,12 @@ DIST_SUBDIRS = es hu it pl ru sr SUBDIRS = $(DOC_LINGUAS) man_MANS = mc.1 mcedit.1 mcview.1 + +CLEANFILES = $(man_MANS) + +EXTRA_DIST = date-of-man-include.am + +DATE_LANG=en_US.UTF-8 +DATE_FORMAT=%B %Y + +include date-of-man-include.am diff --git a/doc/man/date-of-man-include.am b/doc/man/date-of-man-include.am new file mode 100644 index 000000000..72b2dce87 --- /dev/null +++ b/doc/man/date-of-man-include.am @@ -0,0 +1,24 @@ + +mc.1: $(top_builddir)/config.status $(srcdir)/mc.1.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + @MTM=$$(LANG=C stat -c '%y' $(srcdir)/mc.1.in); \ + MAN_DATE=$$(LANG=$(DATE_LANG) date -d "$${MTM}" +'$(DATE_FORMAT)'); \ + sed -i "s/@DATE_OF_MAN_PAGE@/$${MAN_DATE}/" $@ + +mcedit.1: $(top_builddir)/config.status $(srcdir)/mcedit.1.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + @MTM=$$(LANG=C stat -c '%y' $(srcdir)/mcedit.1.in); \ + MAN_DATE=$$(LANG=$(DATE_LANG) date -d "$${MTM}" +'$(DATE_FORMAT)'); \ + sed -i "s/@DATE_OF_MAN_PAGE@/$${MAN_DATE}/" $@ + +mcview.1: $(top_builddir)/config.status $(srcdir)/mcview.1.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + @MTM=$$(LANG=C stat -c '%y' $(srcdir)/mcview.1.in); \ + MAN_DATE=$$(LANG=$(DATE_LANG) date -d "$${MTM}" +'$(DATE_FORMAT)'); \ + sed -i "s/@DATE_OF_MAN_PAGE@/$${MAN_DATE}/" $@ + +mcserv.8: $(top_builddir)/config.status $(srcdir)/mcserv.8.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + @MTM=$$(LANG=C stat -c '%y' $(srcdir)/mcserv.1.in); \ + MAN_DATE=$$(LANG=$(DATE_LANG) date -d "$${MTM}" +'$(DATE_FORMAT)'); \ + sed -i "s/@DATE_OF_MAN_PAGE@/$${MAN_DATE}/" $@ diff --git a/doc/man/es/Makefile.am b/doc/man/es/Makefile.am index 97a4afef5..e64605912 100644 --- a/doc/man/es/Makefile.am +++ b/doc/man/es/Makefile.am @@ -2,3 +2,10 @@ LANG=es mandir = @mandir@/$(LANG) man_MANS = mc.1 + +CLEANFILES = $(man_MANS) + +DATE_LANG=es_ES.UTF-8 +DATE_FORMAT=%B de %Y + +include ../date-of-man-include.am diff --git a/doc/man/es/mc.1.in b/doc/man/es/mc.1.in index c49666645..8fa2c245e 100644 --- a/doc/man/es/mc.1.in +++ b/doc/man/es/mc.1.in @@ -5,7 +5,7 @@ .\" David H. Martín Alonso .\" .\"TOPICS "Índice de Contenidos:" -.TH MC 1 "Octubre de 2009" "MC Versión @DISTR_VERSION@" "GNU Midnight Commander" +.TH MC 1 "@DATE_OF_MAN_PAGE@" "MC Versión @DISTR_VERSION@" "GNU Midnight Commander" .\"SKIP_SECTION" .SH "NOMBRE" mc \- Entorno visual para sistemas tipo Unix. diff --git a/doc/man/hu/Makefile.am b/doc/man/hu/Makefile.am index 3e437ca79..358e347e6 100644 --- a/doc/man/hu/Makefile.am +++ b/doc/man/hu/Makefile.am @@ -2,3 +2,10 @@ LANG=hu mandir = @mandir@/$(LANG) man_MANS = mc.1 + +CLEANFILES = $(man_MANS) + +DATE_LANG=hu_HU.UTF-8 +DATE_FORMAT=%B %Y + +include ../date-of-man-include.am diff --git a/doc/man/hu/mc.1.in b/doc/man/hu/mc.1.in index 313b75dad..634fe6c31 100644 --- a/doc/man/hu/mc.1.in +++ b/doc/man/hu/mc.1.in @@ -1,5 +1,5 @@ .\"TOPICS "Tartalomjegyzék" -.TH MC 1 "January 2003" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" +.TH MC 1 "@DATE_OF_MAN_PAGE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" .\"SKIP_SECTION" .SH "NÉV" mc \- Fájlkezelő Unix típusú rendszerekhez diff --git a/doc/man/it/Makefile.am b/doc/man/it/Makefile.am index ce692cf31..6c2ea0f28 100644 --- a/doc/man/it/Makefile.am +++ b/doc/man/it/Makefile.am @@ -2,3 +2,10 @@ LANG=it mandir = @mandir@/$(LANG) man_MANS = mc.1 + +CLEANFILES = $(man_MANS) + +DATE_LANG=it_IT.UTF-8 +DATE_FORMAT=%B %Y + +include ../date-of-man-include.am diff --git a/doc/man/it/mc.1.in b/doc/man/it/mc.1.in index 414574dcd..cd4a1bfbe 100644 --- a/doc/man/it/mc.1.in +++ b/doc/man/it/mc.1.in @@ -20,7 +20,7 @@ .\" Prego mantenere la linea di traduzione generale (per quanto possibile). .\" .\"TOPICS "Indice degli argomenti:" -.TH MC 1 "January 2003" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" +.TH MC 1 "@DATE_OF_MAN_PAGE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" .\"SKIP_SECTION" .SH "NOME" mc \- interfaccia visuale per sistemi tipo Unix. diff --git a/doc/man/mc.1.in b/doc/man/mc.1.in index df8c2763b..89b8faf7a 100644 --- a/doc/man/mc.1.in +++ b/doc/man/mc.1.in @@ -1,5 +1,5 @@ .\"TOPICS "Topics:" -.TH MC 1 "@MAN_DATE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" +.TH MC 1 "@DATE_OF_MAN_PAGE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" .\"SKIP_SECTION" .SH "NAME" mc \- Visual shell for Unix\-like systems. diff --git a/doc/man/mcedit.1.in b/doc/man/mcedit.1.in index 97631b23d..5f0399829 100644 --- a/doc/man/mcedit.1.in +++ b/doc/man/mcedit.1.in @@ -1,4 +1,4 @@ -.TH MCEDIT 1 "@MAN_DATE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" +.TH MCEDIT 1 "@DATE_OF_MAN_PAGE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" .SH NAME mcedit \- Internal file editor of GNU Midnight Commander. .SH USAGE diff --git a/doc/man/mcview.1.in b/doc/man/mcview.1.in index b285cf3fa..13a34f1d0 100644 --- a/doc/man/mcview.1.in +++ b/doc/man/mcview.1.in @@ -1,4 +1,4 @@ -.TH MCVIEW 1 "@MAN_DATE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" +.TH MCVIEW 1 "@DATE_OF_MAN_PAGE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" .SH NAME mcview \- Internal file viewer of GNU Midnight Commander. .SH USAGE diff --git a/doc/man/pl/Makefile.am b/doc/man/pl/Makefile.am index de13dd9ea..dcf4d351e 100644 --- a/doc/man/pl/Makefile.am +++ b/doc/man/pl/Makefile.am @@ -2,3 +2,10 @@ LANG=pl mandir = @mandir@/$(LANG) man_MANS = mc.1 + +CLEANFILES = $(man_MANS) + +DATE_LANG=pl_PL.UTF-8 +DATE_FORMAT=%B %Y + +include ../date-of-man-include.am diff --git a/doc/man/pl/mc.1.in b/doc/man/pl/mc.1.in index 797435a09..0f040c7f9 100644 --- a/doc/man/pl/mc.1.in +++ b/doc/man/pl/mc.1.in @@ -1,5 +1,5 @@ .\"Przetłumaczone przez by Macieja Wojciechowskiego wojciech@staszic.waw.pl -.TH MC 1 "January 2003" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" +.TH MC 1 "@DATE_OF_MAN_PAGE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" .\"SKIP_SECTION" .SH NAZWA mc \- wizualny interpetator poleceń dla systemów Unixopodobnych diff --git a/doc/man/ru/Makefile.am b/doc/man/ru/Makefile.am index 5ca0e31e6..78f27b610 100644 --- a/doc/man/ru/Makefile.am +++ b/doc/man/ru/Makefile.am @@ -2,3 +2,10 @@ LANG=ru mandir = @mandir@/$(LANG) man_MANS = mc.1 + +CLEANFILES = $(man_MANS) + +DATE_LANG=ru_RU.UTF-8 +DATE_FORMAT=%B %Y + +include ../date-of-man-include.am diff --git a/doc/man/ru/mc.1.in b/doc/man/ru/mc.1.in index ce4ff79a1..58eb16649 100644 --- a/doc/man/ru/mc.1.in +++ b/doc/man/ru/mc.1.in @@ -1,6 +1,6 @@ .\"TOPICS "Разделы помощи:" .\" TODO: Перевести раздел EXTernal File System -.TH MC "14 Июля 2010" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" +.TH MC 1 "@DATE_OF_MAN_PAGE@" "MC Version @DISTR_VERSION@" "GNU Midnight Commander" .\"SKIP_SECTION" .SH "НАИМЕНОВАНИЕ" mc \- Визуальная оболочка для Unix\-подобных систем. diff --git a/doc/man/sr/Makefile.am b/doc/man/sr/Makefile.am index e4d029c73..f94cc2ade 100644 --- a/doc/man/sr/Makefile.am +++ b/doc/man/sr/Makefile.am @@ -1,3 +1,11 @@ LANG=sr mandir = @mandir@/$(LANG) + man_MANS = mc.1 + +CLEANFILES = $(man_MANS) + +DATE_LANG=sr_SR.UTF-8 +DATE_FORMAT=%B %Y. + +include ../date-of-man-include.am diff --git a/doc/man/sr/mc.1.in b/doc/man/sr/mc.1.in index 618e541cb..670a07e93 100644 --- a/doc/man/sr/mc.1.in +++ b/doc/man/sr/mc.1.in @@ -1,5 +1,5 @@ .\"TOPICS "Теме:" -.TH ПН 1 "јануар 2003." "ПН верзија @DISTR_VERSION@" "ГНУ\-ов поноћни наредник" +.TH ПН 1 "@DATE_OF_MAN_PAGE@" "ПН верзија @DISTR_VERSION@" "ГНУ\-ов поноћни наредник" .\"SKIP_SECTION" .SH "НАЗИВ" mc \- Визуална љуска за Униксолике системе.