Move lists of FreeBSD mirror sites to doc/share/sgml/mirrors.xml

(currently en_US.ISO8859-1/books/handbook/mirrors and
www/en/index.xsl use it).

Reviewed by:	simon
Discussed on:	-doc
This commit is contained in:
Hiroki Sato 2003-11-16 18:56:24 +00:00
parent a2865b16c5
commit f19f8b9c34
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=18880
4 changed files with 38 additions and 107 deletions

View file

@ -1,4 +1,4 @@
# $FreeBSD: www/en/Makefile,v 1.98 2003/08/11 20:50:57 simon Exp $
# $FreeBSD: www/en/Makefile,v 1.99 2003/10/29 20:42:50 simon Exp $
.if exists(Makefile.conf)
.include "Makefile.conf"
.endif
@ -91,7 +91,7 @@ WEBDIR?= data
DATA+= index.html
CLEANFILES+= index.html
index.html: index.xsl news/news.xml news/press.xml includes.xsl news/includes.xsl security/advisories.xml
index.html: index.xsl news/news.xml news/press.xml includes.xsl news/includes.xsl security/advisories.xml ../../doc/share/sgml/mirrors.xml
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
${.CURDIR}/index.xsl ${.CURDIR}/news/news.xml
.if !defined(NO_TIDY)

View file

@ -1,9 +1,11 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $FreeBSD: www/en/includes.xsl,v 1.16 2003/10/03 22:42:03 simon Exp $ -->
<!-- $FreeBSD: www/en/includes.xsl,v 1.17 2003/10/29 07:35:52 murray Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:variable name="mirrors" select="'../../doc/share/sgml/mirrors.xml'" />
<xsl:variable name="i.daemon">
<img src="{$base}/gifs/daemon.gif" alt="" align="left" width="80" height="76"/>
</xsl:variable>

View file

@ -1,4 +1,4 @@
<!-- $FreeBSD: www/en/index.xsl,v 1.79 2003/10/17 16:51:08 ceri Exp $ -->
<!-- $FreeBSD: www/en/index.xsl,v 1.80 2003/10/28 16:15:52 simon Exp $ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
@ -6,7 +6,7 @@
<xsl:import href="news/includes.xsl"/>
<xsl:variable name="base" select="'.'"/>
<xsl:variable name="date" select="'$FreeBSD: www/en/index.xsl,v 1.79 2003/10/17 16:51:08 ceri Exp $'"/>
<xsl:variable name="date" select="'$FreeBSD: www/en/index.xsl,v 1.80 2003/10/28 16:15:52 simon Exp $'"/>
<xsl:variable name="title" select="'The FreeBSD Project'"/>
<xsl:output type="html" encoding="iso-8859-1"
@ -50,106 +50,35 @@
which are not mirrored should be listed in
support.sgml. -->
<option value="http://www2.at.FreeBSD.org/">IPv6 Austria</option>
<option value="http://www.dk.FreeBSD.org/">IPv6 Denmark</option>
<option value="http://www2.de.FreeBSD.org">IPv6 Germany</option>
<option value="http://www.jp.FreeBSD.org/www.FreeBSD.org/">IPv6 (6Bone) Japan</option>
<option value="http://www2.no.FreeBSD.org/">IPv6 Norway</option>
<option value="http://www1.uk.FreeBSD.org/">IPv6 UK</option>
<option value="http://www4.us.FreeBSD.org/">IPv6 USA/1</option>
<option value="http://www5.us.FreeBSD.org/">IPv6 USA/2</option>
<option value="http://www.ar.FreeBSD.org/">Argentina</option>
<option value="http://www.au.FreeBSD.org/">Australia/1</option>
<option value="http://www2.au.FreeBSD.org/">Australia/2</option>
<option value="http://www.at.FreeBSD.org/">Austria/1</option>
<option value="http://www2.at.FreeBSD.org/">Austria/2</option>
<option value="http://freebsd.unixtech.be/">Belgium</option>
<option value="http://www.br.FreeBSD.org/">Brazil/1</option>
<option value="http://www2.br.FreeBSD.org/www.freebsd.org/">Brazil/2</option>
<option value="http://www3.br.FreeBSD.org/">Brazil/3</option>
<option value="http://www.bg.FreeBSD.org/">Bulgaria</option>
<option value="http://www.ca.FreeBSD.org/">Canada/1</option>
<option value="http://www2.ca.FreeBSD.org/">Canada/2</option>
<option value="http://www.cn.FreeBSD.org/">China</option>
<option value="http://www.cz.FreeBSD.org/">Czech Republic</option>
<option value="http://www.dk.FreeBSD.org/">Denmark/1</option>
<option value="http://www3.dk.FreeBSD.org/">Denmark/2</option>
<option value="http://www.ee.FreeBSD.org/">Estonia</option>
<option value="http://www.fi.FreeBSD.org/">Finland/1</option>
<option value="http://www2.fi.FreeBSD.org/">Finland/2</option>
<option value="http://www.fr.FreeBSD.org/">France</option>
<option value="http://www.de.FreeBSD.org/">Germany/1</option>
<option value="http://www1.de.FreeBSD.org/">Germany/2</option>
<option value="http://www2.de.FreeBSD.org/">Germany/3</option>
<option value="http://www.gr.FreeBSD.org/">Greece/1</option>
<option value="http://www.FreeBSD.gr/">Greece/2</option>
<option value="http://www.hk.FreeBSD.org/">Hong Kong</option>
<option value="http://www.hu.FreeBSD.org/">Hungary/1</option>
<option value="http://www2.hu.FreeBSD.org/">Hungary/2</option>
<option value="http://www.is.FreeBSD.org/">Iceland</option>
<option value="http://www.ie.FreeBSD.org/">Ireland/1</option>
<option value="http://www2.ie.FreeBSD.org/">Ireland/2</option>
<option value="http://www.it.FreeBSD.org/">Italy/1</option>
<option value="http://www.gufi.org/mirrors/www.freebsd.org/data/">Italy/2</option>
<option value="http://www.jp.FreeBSD.org/www.FreeBSD.org/">Japan</option>
<option value="http://www.kr.FreeBSD.org/">Korea/1</option>
<option value="http://www2.kr.FreeBSD.org/">Korea/2</option>
<option value="http://www.kw.FreeBSD.org/">Kuwait</option>
<option value="http://www.lv.FreeBSD.org/">Latvia</option>
<option value="http://www.lt.FreeBSD.org/">Lithuania</option>
<option value="http://www.nl.FreeBSD.org/">Netherlands/1</option>
<option value="http://www2.nl.FreeBSD.org/">Netherlands/2</option>
<option value="http://www.nz.FreeBSD.org/">New Zealand</option>
<option value="http://www.no.FreeBSD.org/">Norway/1</option>
<option value="http://www2.no.FreeBSD.org/">Norway/2</option>
<option value="http://www.FreeBSD.org.ph/">Philippines</option>
<option value="http://www.pl.FreeBSD.org/">Poland/1</option>
<option value="http://www2.pl.FreeBSD.org/">Poland/2</option>
<option value="http://www.pt.FreeBSD.org/">Portugal/1</option>
<option value="http://www4.pt.FreeBSD.org/">Portugal/2</option>
<option value="http://www5.pt.FreeBSD.org/">Portugal/3</option>
<option value="http://www.ro.FreeBSD.org/">Romania/1</option>
<option value="http://www2.ro.FreeBSD.org/">Romania/2</option>
<option value="http://www3.ro.FreeBSD.org/">Romania/3</option>
<option value="http://www4.ro.FreeBSD.org/">Romania/4</option>
<option value="http://www.ru.FreeBSD.org/">Russia/1</option>
<option value="http://www2.ru.FreeBSD.org/">Russia/2</option>
<option value="http://www3.ru.FreeBSD.org/">Russia/3</option>
<option value="http://www4.ru.FreeBSD.org/">Russia/4</option>
<option value="http://www.sm.FreeBSD.org/">San Marino</option>
<option value="http://www2.sg.FreeBSD.org/">Singapore</option>
<option value="http://www.sk.FreeBSD.org/">Slovak Republic/1</option>
<option value="http://www2.sk.FreeBSD.org/">Slovak Republic/2</option>
<option value="http://www.si.FreeBSD.org/">Slovenia/1</option>
<option value="http://www2.si.FreeBSD.org/">Slovenia/2</option>
<option value="http://www.es.FreeBSD.org/">Spain/1</option>
<option value="http://www2.es.FreeBSD.org/">Spain/2</option>
<option value="http://www3.es.FreeBSD.org/">Spain/3</option>
<option value="http://www.za.FreeBSD.org/">South Africa/1</option>
<option value="http://www2.za.FreeBSD.org/">South Africa/2</option>
<option value="http://www.se.FreeBSD.org/">Sweden/1</option>
<option value="http://www2.se.FreeBSD.org/">Sweden/2</option>
<option value="http://www.ch.FreeBSD.org/">Switzerland/1</option>
<option value="http://www2.ch.FreeBSD.org/">Switzerland/2</option>
<option value="http://www.tw.FreeBSD.org/">Taiwan/1</option>
<option value="http://www2.tw.FreeBSD.org/">Taiwan/2</option>
<option value="http://www3.tw.FreeBSD.org/">Taiwan/3</option>
<option value="http://www4.tw.FreeBSD.org/">Taiwan/4</option>
<option value="http://www.tr.FreeBSD.org/">Turkey/1</option>
<option value="http://www2.tr.FreeBSD.org/">Turkey/2</option>
<option value="http://www.enderunix.org/freebsd/">Turkey/3</option>
<option value="http://www.ua.FreeBSD.org/">Ukraine/1</option>
<option value="http://www2.ua.FreeBSD.org/">Ukraine/2</option>
<option value="http://www5.ua.FreeBSD.org/">Ukraine/3</option>
<option value="http://www4.ua.FreeBSD.org/">Ukraine/Crimea</option>
<option value="http://www.uk.FreeBSD.org/">United Kingdom/1</option>
<option value="http://www2.uk.FreeBSD.org/">United Kingdom/2</option>
<option value="http://www3.uk.FreeBSD.org/">United Kingdom/3</option>
<option value="http://www4.uk.FreeBSD.org/">United Kingdom/4</option>
<option value="http://www1.uk.FreeBSD.org/">United Kingdom/5</option>
<option value="http://www2.us.FreeBSD.org/">USA/1</option>
<option value="http://www4.us.FreeBSD.org/">USA/2</option>
<option value="http://www5.us.FreeBSD.org/">USA/3</option>
<xsl:for-each select="document($mirrors)/mirrors/entry[url[contains(@proto, 'httpv6')]]">
<xsl:for-each select="url[contains(@proto, 'httpv6') and contains(@type, 'www')]">
<option><xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
<xsl:choose>
<xsl:when test="last() = 1">
<xsl:value-of select="concat('IPv6 ', ../country)" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('IPv6 ', ../country, '/', position())" />
</xsl:otherwise>
</xsl:choose>
</option>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="document($mirrors)/mirrors/entry[url[contains(@proto, 'http')]]">
<xsl:for-each select="url[contains(@proto, 'http') and contains(@type, 'www')]">
<option><xsl:attribute name="value"><xsl:value-of select="." /></xsl:attribute>
<xsl:choose>
<xsl:when test="last() = 1">
<xsl:value-of select="../country" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(../country, '/', position())" />
</xsl:otherwise>
</xsl:choose>
</option>
</xsl:for-each>
</xsl:for-each>
</select>
<input type="submit" value=" Go "/>

View file

@ -1,5 +1,5 @@
# bsd.web.mk
# $FreeBSD: www/share/mk/web.site.mk,v 1.45 2003/05/11 21:24:42 phantom Exp $
# $FreeBSD: www/share/mk/web.site.mk,v 1.46 2003/06/24 10:24:59 phantom Exp $
#
# Build and install a web site.
@ -46,7 +46,7 @@ ISPELL?= ispell
ISPELLOPTS?= -l -p /usr/share/dict/freebsd ${ISPELLFLAGS}
XSLTPROC?= ${PREFIX}/bin/xsltproc
XSLTPROCOPTS?= -nonet ${XSLTPROCFLAGS}
XSLTPROCOPTS?= --nonet ${XSLTPROCFLAGS}
TIDY?= ${PREFIX}/bin/tidy
TIDYOPTS?= -i -m -raw -preserve -f /dev/null -asxml ${TIDYFLAGS}