diff options
author | Anthony Fok <foka> | 2000-12-14 00:54:42 +0000 |
---|---|---|
committer | Anthony Fok <foka> | 2000-12-14 00:54:42 +0000 |
commit | 32f8c60b8ef9153fbcc250caa953d2ab05f50d0e (patch) | |
tree | af7aa141ca63c16d7af2f6d52e15c3db6e09de87 /chinese/Make.lang | |
parent | b155fc623b914696d7715bd8ca04d40ac1ab4d57 (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.lang | 4 |
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 |