Commit 24957ec5 authored by Laura Arjona Reina's avatar Laura Arjona Reina

Generate the Chinese variants for index too

CVS version numbers

english/security/Makefile: 1.71 -> 1.72
parent cf380852
......@@ -10,8 +10,24 @@ GETTEXTFILES += security.mo
include $(WMLBASE)/Make.lang
ifndef SUBLANG
INDEXPAGE := index.$(LANGUAGE).html
DSARDF := dsa.$(LANGUAGE).rdf
DSALONGRDF := dsa-long.$(LANGUAGE).rdf
DSAALLRDF := dsa-all.$(LANGUAGE).rdf
DESTDSARDF := $(HTMLDIR)/$(DSARDF)
DESTDSALONGRDF := $(HTMLDIR)/$(DSALONGRDF)
else
INDEXPAGE := $(sort $(foreach i,$(SUBLANG),$(subst index,index.$(LANGUAGE)-$(i),index.html)))
DSARDF := $(sort $(foreach i,$(SUBLANG),$(subst dsa,dsa.$(LANGUAGE)-$(i),dsa.rdf)))
DSALONGRDF := $(sort $(foreach i,$(SUBLANG),$(subst dsa-long,dsa-long.$(LANGUAGE)-$(i),dsa-long.rdf)))
DSAALLRDF := $(sort $(foreach i,$(SUBLANG),$(subst dsa-all,dsa-all.$(LANGUAGE)-$(i),dsa-all.rdf)))
DESTDSARDF := $(patsubst %.rdf,$(HTMLDIR)/%.rdf,$(DSARDF))
DESTDSALONGRDF := $(patsubst %.rdf,$(HTMLDIR)/%.rdf,$(DSALONGRDF))
endif
index.$(LANGUAGE).html: index.wml $(wildcard $(CUR_YEAR)/dsa-*.wml) \
$(INDEXPAGE): index.wml $(wildcard $(CUR_YEAR)/dsa-*.wml) \
$(wildcard $(CUR_YEAR)/dla-*.wml) \
$(wildcard $(ENGLISHSRCDIR)/security/$(CUR_YEAR)/dsa-*.wml) \
$(wildcard $(ENGLISHSRCDIR)/security/$(CUR_YEAR)/dsa-*.data) \
......@@ -20,6 +36,17 @@ index.$(LANGUAGE).html: index.wml $(wildcard $(CUR_YEAR)/dsa-*.wml) \
$(TEMPLDIR)/release_info.wml \
$(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list_security.wml $(GETTEXTDEP)
ifeq "$(LANGUAGE)" "zh"
@echo -n "Processing $(<F): "
$(shell echo $(WML) | perl -pe 's,:.zh-(..)\.html,:index.zh-$$1.html,g') \
$(shell egrep '^-D (CUR_|CHAR)' ../../.wmlrc) \
$(ENGLISHSRCDIR)/$(CUR_DIR)/index.wml
@$(GENERATE_ZH_VARIANTS) index html
else
$(WML) $(shell egrep '^-D (CUR_|CHAR)' ../../.wmlrc) \
$(ENGLISHSRCDIR)/$(CUR_DIR)/index.wml
endif
pam-auth.$(LANGUAGE).html: pam-auth.wml \
$(ENGLISHSRCDIR)/security/pam-auth.wml
......@@ -37,20 +64,6 @@ clean::
rm -f $(DSARDF) $(DSALONGRDF)
rm -f ref-table.inc
ifndef SUBLANG
DSARDF := dsa.$(LANGUAGE).rdf
DSALONGRDF := dsa-long.$(LANGUAGE).rdf
DSAALLRDF := dsa-all.$(LANGUAGE).rdf
DESTDSARDF := $(HTMLDIR)/$(DSARDF)
DESTDSALONGRDF := $(HTMLDIR)/$(DSALONGRDF)
else
DSARDF := $(sort $(foreach i,$(SUBLANG),$(subst dsa,dsa.$(LANGUAGE)-$(i),dsa.rdf)))
DSALONGRDF := $(sort $(foreach i,$(SUBLANG),$(subst dsa-long,dsa-long.$(LANGUAGE)-$(i),dsa-long.rdf)))
DSAALLRDF := $(sort $(foreach i,$(SUBLANG),$(subst dsa-all,dsa-all.$(LANGUAGE)-$(i),dsa-all.rdf)))
DESTDSARDF := $(patsubst %.rdf,$(HTMLDIR)/%.rdf,$(DSARDF))
DESTDSALONGRDF := $(patsubst %.rdf,$(HTMLDIR)/%.rdf,$(DSALONGRDF))
endif
$(DSARDF): $(ENGLISHDIR)/security/dsa.rdf.in \
$(wildcard $(CUR_YEAR)/dsa-*.wml) \
$(wildcard $(ENGLISHDIR)/security/$(CUR_YEAR)/dsa-*.wml) \
......@@ -131,5 +144,3 @@ cleandest::
rm -f $(map)
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment