diff options
author | Cyril Brulebois <kibi@debian.org> | 2020-06-07 22:49:01 +0000 |
---|---|---|
committer | Cyril Brulebois <kibi@debian.org> | 2020-06-07 22:49:08 +0000 |
commit | 83f7cae0178074e5e4f913168b4b42c7be90af13 (patch) | |
tree | e1ae45330b867c6cc309b01cd172fc8ddd818082 /english/Makefile | |
parent | 3100c7bac5092eff6e7d19ebb2ed449bc808fda9 (diff) |
Partially work around buggy sitemap generation on buster (#924172).pu/partial-workaround-924172
wml versions found in stretch and buster seem to behave differently when
the input file is not in the current directory. To mitigate this, turn
the ../english/sitemap.wml input file into sitemap.wml in the wml calls
(Chinese and non-Chinese cases), and add symlinks from all (other)
language directories.
Unfortunately, this generates sitemaps that are only partially translated.
They seem to be well-formed though, and very similar to the English
sitemap generated with wml from stretch. Which seems to be a net win over
the status quo.
Also, the missing translations don't seem to be a regression due to the
deployment of this workaround.
Diffstat (limited to 'english/Makefile')
-rw-r--r-- | english/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/english/Makefile b/english/Makefile index 48a8a6367c6..f8211bbba4e 100644 --- a/english/Makefile +++ b/english/Makefile @@ -50,11 +50,11 @@ ifeq "$(LANGUAGE)" "zh" @echo -n "Processing $(<F): " $(subst :.zh,:sitemap.zh,$(WML)) \ $(shell egrep '^-D (CUR_|CHAR)' .wmlrc) \ - $(shell echo $(ENGLISHDIR) | sed s,./,,)/sitemap.wml + sitemap.wml @$(GENERATE_ZH_VARIANTS) sitemap html else $(WML) $(shell egrep '^-D (CUR_|CHAR)' .wmlrc) \ - $(shell echo $(ENGLISHDIR) | sed s,./,,)/sitemap.wml + sitemap.wml endif ifneq "$(LANGUAGE)" "en" |