From 130e2f9b675dcc40f26743fb5bf068e75392532b Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 14 Dec 2009 01:34:02 +0000 Subject: [PATCH] Unconditionally symlink documentation files missing from a translation. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30017 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/xml/Makefile.inc | 3 +-- DOCS/xml/README.maintainers | 5 ----- DOCS/xml/cs/Makefile | 3 --- DOCS/xml/de/Makefile | 3 --- DOCS/xml/en/Makefile | 3 --- DOCS/xml/es/Makefile | 3 --- DOCS/xml/fr/Makefile | 3 --- DOCS/xml/hu/Makefile | 3 --- DOCS/xml/it/Makefile | 3 --- DOCS/xml/pl/Makefile | 3 --- DOCS/xml/ru/Makefile | 3 --- DOCS/xml/zh_CN/Makefile | 3 --- 12 files changed, 1 insertion(+), 37 deletions(-) diff --git a/DOCS/xml/Makefile.inc b/DOCS/xml/Makefile.inc index f2a4060ef2..c260710479 100644 --- a/DOCS/xml/Makefile.inc +++ b/DOCS/xml/Makefile.inc @@ -30,7 +30,7 @@ all: html-chunked html-single html-chunked: $(HTMLDIR)/index.html html-single: $(HTMLDIR)/MPlayer.html -SYMLINKS_DEPS:=$(if $(findstring yes,$(USE_SYMLINKS)), $(patsubst ../en/%,%,$(wildcard ../en/*.xml))) +SYMLINKS_DEPS:=$(patsubst ../en/%,%,$(wildcard ../en/*.xml)) xmllint: main.xml $(SYMLINKS_DEPS) ../xmllint.sh $< @@ -48,7 +48,6 @@ $(HTMLDIR)/MPlayer.html: main.xml $(XSL_DEPS) $(SYMLINKS_DEPS) xmllint $(HTMLDIR cd .. && sh configure $(filter-out main.xml, $(patsubst ../en/%,%, $(wildcard ../en/*.xml))): - $(if $(findstring yes,$(USE_SYMLINKS)), ,exit 0;)\ for file in ../en/*.xml ; do \ if ! test -r `basename $$file` ; then \ ln -s $$file `basename $$file` ; \ diff --git a/DOCS/xml/README.maintainers b/DOCS/xml/README.maintainers index 743d0a71e2..86be440a09 100644 --- a/DOCS/xml/README.maintainers +++ b/DOCS/xml/README.maintainers @@ -75,9 +75,4 @@ Adding new translations like , where 2 is the revision of corresponding English file (see comment at the top of file). -7) While your translation isn't finished, you can change USE_SYMLINKS - to "yes" in your Makefile. This will help you testing your translation: - English files will be used instead of untranslated ones, when generating - HTML docs. - That's all, in theory. diff --git a/DOCS/xml/cs/Makefile b/DOCS/xml/cs/Makefile index ea6cc92bcb..2b263eea93 100644 --- a/DOCS/xml/cs/Makefile +++ b/DOCS/xml/cs/Makefile @@ -1,9 +1,6 @@ # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css -# Change to yes to enable symlinking missing files to English master versions -USE_SYMLINKS = no - # Dependency information. $(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml) diff --git a/DOCS/xml/de/Makefile b/DOCS/xml/de/Makefile index ea6cc92bcb..2b263eea93 100644 --- a/DOCS/xml/de/Makefile +++ b/DOCS/xml/de/Makefile @@ -1,9 +1,6 @@ # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css -# Change to yes to enable symlinking missing files to English master versions -USE_SYMLINKS = no - # Dependency information. $(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml) diff --git a/DOCS/xml/en/Makefile b/DOCS/xml/en/Makefile index ea6cc92bcb..2b263eea93 100644 --- a/DOCS/xml/en/Makefile +++ b/DOCS/xml/en/Makefile @@ -1,9 +1,6 @@ # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css -# Change to yes to enable symlinking missing files to English master versions -USE_SYMLINKS = no - # Dependency information. $(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml) diff --git a/DOCS/xml/es/Makefile b/DOCS/xml/es/Makefile index 11dc2e788f..2b263eea93 100644 --- a/DOCS/xml/es/Makefile +++ b/DOCS/xml/es/Makefile @@ -1,9 +1,6 @@ # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css -# Change to yes to enable symlinking missing files to English master versions -USE_SYMLINKS = yes - # Dependency information. $(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml) diff --git a/DOCS/xml/fr/Makefile b/DOCS/xml/fr/Makefile index ea6cc92bcb..2b263eea93 100644 --- a/DOCS/xml/fr/Makefile +++ b/DOCS/xml/fr/Makefile @@ -1,9 +1,6 @@ # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css -# Change to yes to enable symlinking missing files to English master versions -USE_SYMLINKS = no - # Dependency information. $(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml) diff --git a/DOCS/xml/hu/Makefile b/DOCS/xml/hu/Makefile index ea6cc92bcb..2b263eea93 100644 --- a/DOCS/xml/hu/Makefile +++ b/DOCS/xml/hu/Makefile @@ -1,9 +1,6 @@ # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css -# Change to yes to enable symlinking missing files to English master versions -USE_SYMLINKS = no - # Dependency information. $(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml) diff --git a/DOCS/xml/it/Makefile b/DOCS/xml/it/Makefile index 11dc2e788f..2b263eea93 100644 --- a/DOCS/xml/it/Makefile +++ b/DOCS/xml/it/Makefile @@ -1,9 +1,6 @@ # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css -# Change to yes to enable symlinking missing files to English master versions -USE_SYMLINKS = yes - # Dependency information. $(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml) diff --git a/DOCS/xml/pl/Makefile b/DOCS/xml/pl/Makefile index ea6cc92bcb..2b263eea93 100644 --- a/DOCS/xml/pl/Makefile +++ b/DOCS/xml/pl/Makefile @@ -1,9 +1,6 @@ # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css -# Change to yes to enable symlinking missing files to English master versions -USE_SYMLINKS = no - # Dependency information. $(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml) diff --git a/DOCS/xml/ru/Makefile b/DOCS/xml/ru/Makefile index ea6cc92bcb..2b263eea93 100644 --- a/DOCS/xml/ru/Makefile +++ b/DOCS/xml/ru/Makefile @@ -1,9 +1,6 @@ # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css -# Change to yes to enable symlinking missing files to English master versions -USE_SYMLINKS = no - # Dependency information. $(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml) diff --git a/DOCS/xml/zh_CN/Makefile b/DOCS/xml/zh_CN/Makefile index 11dc2e788f..2b263eea93 100644 --- a/DOCS/xml/zh_CN/Makefile +++ b/DOCS/xml/zh_CN/Makefile @@ -1,9 +1,6 @@ # Set if you are using your own HTML stylesheet... #HTML_STYLESHEET = mystyle.css -# Change to yes to enable symlinking missing files to English master versions -USE_SYMLINKS = yes - # Dependency information. $(HTMLDIR)/index.html $(HTMLDIR)/MPlayer.html: $(wildcard *.xml)