Skip to content
Snippets Groups Projects
Commit 83f7cae0 authored by Cyril Brulebois's avatar Cyril Brulebois
Browse files

Partially work around buggy sitemap generation on buster (#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.
parent 3100c7ba
No related branches found
No related tags found
1 merge request!524Pu/partial workaround (bug #924172)
Showing with 21 additions and 2 deletions
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
......@@ -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"
......
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
../english/sitemap.wml
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment