forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r813716 - in /forrest/trunk/site-author/content: mirrors--xml.cgi mirrors--xml.html
Date Fri, 11 Sep 2009 08:22:44 GMT
Author: crossley
Date: Fri Sep 11 08:22:44 2009
New Revision: 813716

URL: http://svn.apache.org/viewvc?rev=813716&view=rev
Log:
Enable ASF mirrors system to present an xml listing of the client's closest mirrors.
Issue: FOR-1068 is also related.

Added:
    forrest/trunk/site-author/content/mirrors--xml.cgi   (with props)
    forrest/trunk/site-author/content/mirrors--xml.html   (with props)

Added: forrest/trunk/site-author/content/mirrors--xml.cgi
URL: http://svn.apache.org/viewvc/forrest/trunk/site-author/content/mirrors--xml.cgi?rev=813716&view=auto
==============================================================================
--- forrest/trunk/site-author/content/mirrors--xml.cgi (added)
+++ forrest/trunk/site-author/content/mirrors--xml.cgi Fri Sep 11 08:22:44 2009
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Wrapper script around mirrors.cgi script
+# (we must change to that directory in order for python to pick up the
+#  python includes correctly)
+# Copied from Stefan's http://www.apache.org/~bodewig/mirror.html
+cd /www/www.apache.org/dyn/mirrors 
+/www/www.apache.org/dyn/mirrors/mirrors.cgi $*

Propchange: forrest/trunk/site-author/content/mirrors--xml.cgi
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: forrest/trunk/site-author/content/mirrors--xml.cgi
------------------------------------------------------------------------------
    svn:executable = *

Added: forrest/trunk/site-author/content/mirrors--xml.html
URL: http://svn.apache.org/viewvc/forrest/trunk/site-author/content/mirrors--xml.html?rev=813716&view=auto
==============================================================================
--- forrest/trunk/site-author/content/mirrors--xml.html (added)
+++ forrest/trunk/site-author/content/mirrors--xml.html Fri Sep 11 08:22:44 2009
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<mirrors>
+  <mirror url="[preferred]/forrest/" label="Preferred mirror: [preferred]/forrest/"/>
+[if-any http]
+  [for http]  
+    <mirror url="[http]/forrest/" label="Other mirror: [http]/forrest/"/>
+  [end] 
+[end]
+[if-any backup]
+  [for backup]    
+    <mirror url="[backup]/forrest/" label="Backup mirror: [backup]/forrest/"/>
+  [end]
+[end]
+</mirrors>

Propchange: forrest/trunk/site-author/content/mirrors--xml.html
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message