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

Andreas Hess jaska at gmx.net
Mon Feb 10 16:07:32 CET 2003


On Mon, Feb 10, 2003 at 12:52:26PM +0100, Diego Biurrun wrote:
> On Mon, Feb 10, 2003 at 11:27:54AM +0100, Andreas Hess wrote:
> > +_language=$LINGUAS
> >  
> > +
> > +LANGUAGE = $_language
> 
> That's redundant, why not simply set

Ok, how about this one?
-------------- 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 15:14:34 -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 15:14:39 -0000
@@ -1616,6 +1616,9 @@
 fi
 _mp_help="help/help_mp-${LINGUAS}.h"
 test -f $_mp_help || die "$_mp_help not found"
+if not test -f "DOCS/${LINGUAS}/mplayer.1" ; then
+  LINGUAS="en"
+fi
 
 echocheck "enable sighandler"
 if test "$_sighandler" = yes ; then
@@ -4816,6 +4819,8 @@
 EXTRA_INC = $_inc_extra $_inc_gtk
 WIN32_PATH = -DWIN32_PATH=\\"$_win32libdir\\"
 STRIPBINARIES = $_stripbinaries
+
+LANGUAGE = $LINGUAS
 
 $_live_libs_def
 


More information about the MPlayer-dev-eng mailing list