[MPlayer-dev-eng] [PATCH] install localized manpages

Andreas Hess jaska at gmx.net
Mon Feb 10 11:27:54 CET 2003


Hi,

with the reorganized DOCS dir in the main tree, the installation of the
manual fails, so I added support for installing the localized manpage
based on the --language configure option.


Andreas
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/Makefile,v
retrieving revision 1.250
diff -u -r1.250 Makefile
--- Makefile	9 Feb 2003 20:18:11 -0000	1.250
+++ Makefile	10 Feb 2003 10:31:31 -0000
@@ -260,7 +260,7 @@
 	-ln -sf $(PRG) $(BINDIR)/gmplayer
 endif
 	if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi
-	$(INSTALL) -c -m 644 DOCS/mplayer.1 $(MANDIR)/man1/mplayer.1
+	$(INSTALL) -c -m 644 DOCS/$(LANGUAGE)/mplayer.1 $(MANDIR)/man1/mplayer.1
 ifeq ($(MENCODER),yes)
 	$(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER)
 	-ln -sf mplayer.1 $(MANDIR)/man1/mencoder.1
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.658
diff -u -r1.658 configure
--- configure	8 Feb 2003 22:29:05 -0000	1.658
+++ configure	10 Feb 2003 10:31:36 -0000
@@ -1616,6 +1616,7 @@
 fi
 _mp_help="help/help_mp-${LINGUAS}.h"
 test -f $_mp_help || die "$_mp_help not found"
+_language=$LINGUAS
 
 echocheck "enable sighandler"
 if test "$_sighandler" = yes ; then
@@ -4816,6 +4817,8 @@
 EXTRA_INC = $_inc_extra $_inc_gtk
 WIN32_PATH = -DWIN32_PATH=\\"$_win32libdir\\"
 STRIPBINARIES = $_stripbinaries
+
+LANGUAGE = $_language
 
 $_live_libs_def
 


More information about the MPlayer-dev-eng mailing list