changeset 26351:bc5a23b6ca2d

if it's 'for lang in...' it's better off to use $$lang as a variable next ;)
author ptt
date Thu, 10 Apr 2008 10:55:39 +0000
parents 07abe94a9cc4
children 50ef6af151fa
files Makefile
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Apr 10 10:01:54 2008 +0000
+++ b/Makefile	Thu Apr 10 10:55:39 2008 +0000
@@ -305,7 +305,7 @@
 			$(INSTALL) -c -m 644 DOCS/man/en/mplayer.1 $(MANDIR)/man1/ ; \
 		else \
 			$(INSTALL) -d $(MANDIR)/$$i/man1 ; \
-			$(INSTALL) -c -m 644 DOCS/man/$$i/mplayer.1 $(MANDIR)/$$i/man1/ ; \
+			$(INSTALL) -c -m 644 DOCS/man/$$lang/mplayer.1 $(MANDIR)/$$i/man1/ ; \
 		fi ; \
 	done
 
@@ -315,7 +315,7 @@
 		if test "$$lang" = en ; then \
 			cd $(MANDIR)/man1 && ln -sf mplayer.1 mencoder.1 ; \
 		else \
-			cd $(MANDIR)/$$i/man1 && ln -sf mplayer.1 mencoder.1 ; \
+			cd $(MANDIR)/$$lang/man1 && ln -sf mplayer.1 mencoder.1 ; \
 		fi ; \
 	done
 
@@ -337,9 +337,9 @@
 	-rm -f $(prefix)/share/applications/mplayer.desktop
 	for lang in $(MAN_LANG); do \
 	  if test "$$lang" != "en"; then \
-	    rm -f $(MANDIR)/$$l/man1/mplayer.1    \
-	          $(MANDIR)/$$l/man1/mencoder.1   \
-	          $(MANDIR)/$$l/man1/gmplayer.1 ; \
+	    rm -f $(MANDIR)/$$lang/man1/mplayer.1    \
+	          $(MANDIR)/$$lang/man1/mencoder.1   \
+	          $(MANDIR)/$$lang/man1/gmplayer.1 ; \
 	  fi ; \
 	done