aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/Make.lang
diff options
context:
space:
mode:
authorAnthony Fok <foka>2000-12-14 00:54:42 +0000
committerAnthony Fok <foka>2000-12-14 00:54:42 +0000
commit32f8c60b8ef9153fbcc250caa953d2ab05f50d0e (patch)
treeaf7aa141ca63c16d7af2f6d52e15c3db6e09de87 /chinese/Make.lang
parentb155fc623b914696d7715bd8ca04d40ac1ab4d57 (diff)
Creates symlink of filename.zh-tw.html to filename.html if English version
isn't there in the www.debian.org/zh/ directory. (Otherwise the Debian ZH pages broken for most browsers. CVS version numbers chinese/Make.lang: 1.26 -> 1.27
Diffstat (limited to 'chinese/Make.lang')
-rw-r--r--chinese/Make.lang4
1 files changed, 4 insertions, 0 deletions
diff --git a/chinese/Make.lang b/chinese/Make.lang
index ea4e51e9730..313ad95bcc6 100644
--- a/chinese/Make.lang
+++ b/chinese/Make.lang
@@ -40,6 +40,10 @@ ZHMAGIC = @if `echo $(HTMLDIR) | grep -q '^$(WMLBASE)/$(RELHTMLBASE)/internation
-e 's%="\(index\...\.html"\)%="'$$ZHRELDIR'/\1%;' $(@F) \
> $$ZHDIR/$(@F) ; \
echo " and to $$ZHDIR" ; \
+ if [ ! -f "$(WMLBASE)/../english/$(CUR_DIR)/$(*F).wml" ]; then \
+ echo "Making a link $$ZHDIR/$(*F).html -> $(@F)"; \
+ ln -f -s $(@F) $$ZHDIR/$(*F).html; \
+ fi ; \
fi

© 2014-2024 Faster IT GmbH | imprint | privacy policy