]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
docs: do not overwrite ddate.1 manual
authorSami Kerola <kerolasa@iki.fi>
Sun, 26 Feb 2012 21:45:40 +0000 (22:45 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Feb 2012 14:41:32 +0000 (15:41 +0100)
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
man/ru/Makefile.am

index 966e9da94dc6635e919d2342e7a16e67ee036486..8b8006ecd94b9447351baf3746295d0baa2165f1 100644 (file)
@@ -831,6 +831,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],
index 31fafb9dd336ab61d840e1d59d8101e06b04cc25..64e88fdde2de6c879067bf3e7435a30aead2602b 100644 (file)
@@ -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