You are viewing a plain text version of this content. The canonical link for it is here.
Posted to easyant-commits@incubator.apache.org by hi...@apache.org on 2011/03/14 14:23:45 UTC
svn commit: r1081389 - in /incubator/easyant/site/sources: download.cgi
download.html js/download-redirect.js
Author: hibou
Date: Mon Mar 14 14:23:44 2011
New Revision: 1081389
URL: http://svn.apache.org/viewvc?rev=1081389&view=rev
Log:
Make the download page aware of the apache mirrors, to be used the day we make our first release
Added:
incubator/easyant/site/sources/download.cgi (with props)
incubator/easyant/site/sources/js/download-redirect.js (with props)
Modified:
incubator/easyant/site/sources/download.html
Added: incubator/easyant/site/sources/download.cgi
URL: http://svn.apache.org/viewvc/incubator/easyant/site/sources/download.cgi?rev=1081389&view=auto
==============================================================================
--- incubator/easyant/site/sources/download.cgi (added)
+++ incubator/easyant/site/sources/download.cgi Mon Mar 14 14:23:44 2011
@@ -0,0 +1,22 @@
+#!/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)
+cd /www/www.apache.org/dyn/mirrors
+/www/www.apache.org/dyn/mirrors/mirrors.cgi $*
Propchange: incubator/easyant/site/sources/download.cgi
------------------------------------------------------------------------------
svn:executable = *
Modified: incubator/easyant/site/sources/download.html
URL: http://svn.apache.org/viewvc/incubator/easyant/site/sources/download.html?rev=1081389&r1=1081388&r2=1081389&view=diff
==============================================================================
--- incubator/easyant/site/sources/download.html (original)
+++ incubator/easyant/site/sources/download.html Mon Mar 14 14:23:44 2011
@@ -20,6 +20,7 @@
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
+ <script src="js/download-redirect.js" type="text/javascript"></script>
<script type="text/javascript">var xookiConfig = {level: 0};</script>
<script type="text/javascript" src="xooki/xooki.js"></script>
</head>
Added: incubator/easyant/site/sources/js/download-redirect.js
URL: http://svn.apache.org/viewvc/incubator/easyant/site/sources/js/download-redirect.js?rev=1081389&view=auto
==============================================================================
--- incubator/easyant/site/sources/js/download-redirect.js (added)
+++ incubator/easyant/site/sources/js/download-redirect.js Mon Mar 14 14:23:44 2011
@@ -0,0 +1,21 @@
+/*
+ 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.
+*/
+if (m = /(http:.*\/)download.html([^\/]*)/.exec(window.location.toString())) {
+ window.location.href = m[1] + "download.cgi" + m[2];
+}
Propchange: incubator/easyant/site/sources/js/download-redirect.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/easyant/site/sources/js/download-redirect.js
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/easyant/site/sources/js/download-redirect.js
------------------------------------------------------------------------------
svn:mime-type = text/plain