[Mplayer-cvslog] CVS: main Makefile,1.254,1.255 configure,1.663,1.664
Winner of tha face compo
gabucino at mplayerhq.hu
Mon Feb 17 14:06:21 CET 2003
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv15977
Modified Files:
Makefile configure
Log Message:
patch by "Andriy N. Gritsenko" <andrej at lucky.net>
Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/Makefile,v
retrieving revision 1.254
retrieving revision 1.255
diff -u -r1.254 -r1.255
--- Makefile 16 Feb 2003 14:14:13 -0000 1.254
+++ Makefile 17 Feb 2003 13:06:03 -0000 1.255
@@ -247,10 +247,25 @@
endif
if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi
$(INSTALL) -c -m 644 DOCS/en/mplayer.1 $(MANDIR)/man1/mplayer.1
- @for LCLMANS in de fr hu pl; do $(INSTALL) -D -c -m 644 DOCS/$$LCLMANS/mplayer.1 $(MANDIR)/$$LCLMANS/man1/mplayer.1; done
+ @if [ -n "$(LANGUAGES)" ]; then \
+ for i in $(LANGUAGES); do \
+ if [ -f DOCS/$$i/mplayer.1 ]; then \
+ echo "Installing manual for language $$i" ; \
+ mkdir -p $(MANDIR)/$$i/man1 ; \
+ $(INSTALL) -c -m 644 DOCS/$$i/mplayer.1 $(MANDIR)/$$i/man1/mplayer.1 ; \
+ fi ; \
+ done ; \
+ fi
ifeq ($(MENCODER),yes)
$(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER)
- @for LCLMANS in de fr hu pl; do ln -sf mplayer.1 $(MANDIR)/$$LCLMANS/man1/mencoder.1; done
+ ln -sf mplayer.1 $(MANDIR)/man1/mencoder.1
+ @if [ -n "$(LANGUAGES)" ]; then \
+ for i in $(LANGUAGES); do \
+ if [ -f DOCS/$$i/mplayer.1 ]; then \
+ ln -sf mplayer.1 $(MANDIR)/$$i/man1/mencoder.1 ; \
+ fi ; \
+ done ; \
+ fi
endif
@if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi
@if test ! -d $(DATADIR)/font ; then mkdir -p $(DATADIR)/font ; fi
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.663
retrieving revision 1.664
diff -u -r1.663 -r1.664
--- configure 15 Feb 2003 21:51:24 -0000 1.663
+++ configure 17 Feb 2003 13:06:03 -0000 1.664
@@ -293,6 +293,10 @@
done # for parm in ...
+# set up LANGUAGES
+test "$LINGUAS" || LINGUAS=`cd DOCS;/bin/ls -d ??` 2>/dev/null
+LANGUAGES=`echo $LINGUAS | sed 's/en//g' | sed 's/^ *//'`
+
# 1st pass checking for vital options
_install=install
_ranlib=ranlib
@@ -4808,6 +4812,7 @@
LANG = C
LINGUAS = $LINGUAS
+LANGUAGES = $LANGUAGES
TARGET_OS = $system_name
DESTDIR =
prefix = \$(DESTDIR)$_prefix
More information about the MPlayer-cvslog
mailing list