* [PATCH] docs: do not overwrite ddate.1 manual
@ 2012-02-26 21:45 Sami Kerola
2012-02-28 17:18 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Sami Kerola @ 2012-02-26 21:45 UTC (permalink / raw)
To: util-linux; +Cc: kerolasa
The following warning meant either english manual page overwrote ru
version, or otherway around. Neither way that not intented. This
patch will change ru version of the manual page to be installed to
<prefix><mandir>/ru/man1 directory.
man/ru/Makefile.am:4: warning: mandir was already defined in condition TRUE, which includes condition BUILD_DDATE ...
configure.ac:1: ... `mandir' previously defined here
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
configure.ac | 2 ++
man/ru/Makefile.am | 5 ++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index d3b298c..be9da27 100644
--- a/configure.ac
+++ b/configure.ac
@@ -833,6 +833,8 @@ AC_ARG_ENABLE([ddate],
)
UL_BUILD_INIT([ddate])
AM_CONDITIONAL(BUILD_DDATE, test "x$build_ddate" = xyes)
+rumandir='${mandir}/ru/man1'
+AC_SUBST([rumandir])
AC_ARG_ENABLE([agetty],
diff --git a/man/ru/Makefile.am b/man/ru/Makefile.am
index 31fafb9..64e88fd 100644
--- a/man/ru/Makefile.am
+++ b/man/ru/Makefile.am
@@ -1,7 +1,6 @@
include $(top_srcdir)/config/include-Makefile.am
if BUILD_DDATE
-mandir = @mandir@/ru
-dist_man_MANS =
-dist_man_MANS += ddate.1
+ruman_DATA = ddate.1
+EXTRA_DIST = $(ruman_DATA)
endif
--
1.7.9.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] docs: do not overwrite ddate.1 manual
2012-02-26 21:45 [PATCH] docs: do not overwrite ddate.1 manual Sami Kerola
@ 2012-02-28 17:18 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2012-02-28 17:18 UTC (permalink / raw)
To: Sami Kerola; +Cc: util-linux
On Sun, Feb 26, 2012 at 10:45:40PM +0100, Sami Kerola wrote:
> The following warning meant either english manual page overwrote ru
> version, or otherway around. Neither way that not intented. This
> patch will change ru version of the manual page to be installed to
> <prefix><mandir>/ru/man1 directory.
>
> man/ru/Makefile.am:4: warning: mandir was already defined in condition TRUE, which includes condition BUILD_DDATE ...
> configure.ac:1: ... `mandir' previously defined here
>
> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
> ---
> configure.ac | 2 ++
> man/ru/Makefile.am | 5 ++---
> 2 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index d3b298c..be9da27 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -833,6 +833,8 @@ AC_ARG_ENABLE([ddate],
> )
> UL_BUILD_INIT([ddate])
> AM_CONDITIONAL(BUILD_DDATE, test "x$build_ddate" = xyes)
> +rumandir='${mandir}/ru/man1'
> +AC_SUBST([rumandir])
>
>
> AC_ARG_ENABLE([agetty],
> diff --git a/man/ru/Makefile.am b/man/ru/Makefile.am
> index 31fafb9..64e88fd 100644
> --- a/man/ru/Makefile.am
> +++ b/man/ru/Makefile.am
> @@ -1,7 +1,6 @@
> include $(top_srcdir)/config/include-Makefile.am
>
> if BUILD_DDATE
> -mandir = @mandir@/ru
> -dist_man_MANS =
> -dist_man_MANS += ddate.1
> +ruman_DATA = ddate.1
> +EXTRA_DIST = $(ruman_DATA)
Ah... that's dirty, but ddate(1) users don't expect anything other :-)
I'm not able to found a better solution (it would be nice to use
*_MANS as it automatically creates the man<N> subdir, but...)
Applied, thanks.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-28 17:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-26 21:45 [PATCH] docs: do not overwrite ddate.1 manual Sami Kerola
2012-02-28 17:18 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox