You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ma...@apache.org on 2014/03/09 20:52:20 UTC
svn commit: r1575743 -
/openoffice/ooo-site/trunk/content/download/test/download_other.js
Author: marcus
Date: Sun Mar 9 19:52:20 2014
New Revision: 1575743
URL: http://svn.apache.org/r1575743
Log:
Updated to work with more than one release mode
Modified:
openoffice/ooo-site/trunk/content/download/test/download_other.js
Modified: openoffice/ooo-site/trunk/content/download/test/download_other.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download_other.js?rev=1575743&r1=1575742&r2=1575743&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download_other.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download_other.js Sun Mar 9 19:52:20 2014
@@ -23,43 +23,45 @@ var LANG_MAX = 133; // The maximal avai
* The main entry for writting the table into the webpage
*/
function write_table( rel_mode ) {
- var AOO = "Apache_OpenOffice_";
- var AOO_SDK = "Apache_OpenOffice-SDK_";
if ( rel_mode == 0 ) {
// Release mode
+ var AOO = "Apache_OpenOffice_";
+ var AOO_SDK = "Apache_OpenOffice-SDK_";
var AOO_SRC = "/source/apache-openoffice-" + VERSION + "-" + SVN_REV + "-src";
var URL_AOO = SOURCEFORGE_BASE_URL;
- var URL_SDK = SOURCEFORGE_BASE_URL + "SDK/Apache_OpenOffice-SDK_" + VERSION;
+ var URL_SDK = SOURCEFORGE_BASE_URL + "SDK/" + AOO_SDK + VERSION;
var URL_SRC = APACHE_DIST_BASE_URL + AOO_SRC;
+ var URL_HASH = APACHE_DIST_BASE_URL;
// Debug: Uncomment to use different base URLs
/*
var URL_AOO = PEOPLE_BASE_URL + "/binaries/";
- var URL_SDK = PEOPLE_BASE_URL + "/binaries/SDK/Apache_OpenOffice-SDK_" + VERSION;
- var URL_SRC = PEOPLE_BASE_URL + "/source/" + AOO_SRC + VERSION + "-" + SVN_REV;
+ var URL_SDK = PEOPLE_BASE_URL + "/binaries/SDK/" + AOO_SDK + VERSION;
+ var URL_SRC = PEOPLE_BASE_URL + "/source/" + AOO_SRC + VERSION + "-beta-" + SVN_REV + "-src";
*/
- var URL_HASH = APACHE_DIST_BASE_URL;
} else {
// Beta release mode
- var AOO_SRC = "/source/apache-openoffice-" + BETA_VERSION + "-" + SVN_REV + "-src";
+ BETA_VERSION = "4.1.0";
+ SVN_REV = BETA_SVN_REV;
+ PLATFORM = BETA_PLATFORM;
+ FULL_LANG = BETA_FULL_LANG;
+ LP_LANG = BETA_LP_LANG;
+ SDK_LANG = BETA_SDK_LANG;
+ var AOO = "Apache_OpenOffice_Beta_";
+ var AOO_SDK = "Apache_OpenOffice_Beta-SDK_";
+ var AOO_SRC = "/source/apache-openoffice-" + BETA_VERSION + "-beta-" + SVN_REV + "-src";
var URL_AOO = SOURCEFORGE_BASE_URL_BETA;
- var URL_SDK = SOURCEFORGE_BASE_URL_BETA + "SDK/Apache_OpenOffice-SDK_" + BETA_VERSION;
+ var URL_SDK = SOURCEFORGE_BASE_URL_BETA + "SDK/" + AOO_SDK + BETA_VERSION;
var URL_SRC = APACHE_DIST_BASE_URL_BETA + AOO_SRC;
+ var URL_HASH = APACHE_DIST_BASE_URL_BETA;
// Debug: Uncomment to use different base URLs
/*
var URL_AOO = PEOPLE_BASE_URL + "/binaries/";
- var URL_SDK = PEOPLE_BASE_URL + "/binaries/SDK/Apache_OpenOffice-SDK_" + BETA_VERSION;
- var URL_SRC = PEOPLE_BASE_URL + "/source/" + AOO_SRC + BETA_VERSION + "-" + SVN_REV;
+ var URL_SDK = PEOPLE_BASE_URL + "/binaries/SDK/" + AOO_SDK + BETA_VERSION;
+ var URL_SRC = PEOPLE_BASE_URL + "/source/" + AOO_SRC + BETA_VERSION + "-beta-" + SVN_REV + "-src";
*/
- var URL_HASH = APACHE_DIST_BASE_URL_BETA;
-
- VERSION = BETA_VERSION;
- PLATFORM = BETA_PLATFORM;
- FULL_LANG = BETA_FULL_LANG;
- LP_LANG = BETA_LP_LANG;
- SDK_LANG = BETA_SDK_LANG;
}
document.write( "<table class='builds' cellpadding='2' cellspacing='2'>" );
@@ -232,11 +234,9 @@ function write_build( rel_mode, URL_AOO,
document.write( " <a " + SMALL + "href='" + URL_HASH + "/binaries/" + INSTALL_LANG[ k ] + "/" + AOO + VERSION + "_MacOS_x86-64_" + TYPE + "_" + INSTALL_LANG[ k ] + ".dmg.asc'>ASC</a>" );
document.write( " <a " + SMALL + "href='" + URL_HASH + "/binaries/" + INSTALL_LANG[ k ] + "/" + AOO + VERSION + "_MacOS_x86-64_" + TYPE + "_" + INSTALL_LANG[ k ] + ".dmg.md5'>MD5</a><br />" );
document.write( " <a " + SMALL + "href='" + URL_HASH + "/binaries/" + INSTALL_LANG[ k ] + "/" + AOO + VERSION + "_MacOS_x86-64_" + TYPE + "_" + INSTALL_LANG[ k ] + ".dmg.sha256'>SHA256</a></td>" );
- }
}
+ }
} else {
-
-
// Write download links for SDK builds and its checksums
if ( PLATFORM.indexOf( "Win_x86" ) > -1 ) {
document.write( "<td style='text-align: center'><a href='" + URL_AOO + "_Win_x86_" + TYPE + "_" + INSTALL_LANG[ k ] + ".exe'><b>exe</b></a><br /><br />" );
@@ -379,28 +379,54 @@ function write_sdk( rel_mode, URL_SDK, U
else
document.write( "<tr class='b'><td>-</td><td>-</td><td><small><a href='#notes'" + "title='What are source tarballs?'>Source<br />tarballs</a></small></td>" );
- document.write( "<td style='text-align: center'><a href='" + URL_SRC + ".tar.bz2'><b>tar.bz2</b></a><br /><br />" );
- document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.bz2.asc'>ASC</a>" );
- document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.bz2.md5'>MD5</a><br />" );
- document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.bz2.sha256'>SHA256</a></td>" );
- document.write( "<td> </td>" );
- document.write( "<td style='text-align: center'><a href='" + URL_SRC + ".tar.gz'><b>tar.gz</b></a><br /><br />" );
- document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.gz.asc'>ASC</a>" );
- document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.gz.md5'>MD5</a><br />" );
- document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.gz.sha256'>SHA256</a></td>" );
- document.write( "<td> </td>" );
- document.write( "<td style='text-align: center'><a href='" + URL_SRC + ".zip'><b>zip</b></a><br /><br />" );
- document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".zip.asc'>ASC</a>" );
- document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".zip.md5'>MD5</a><br />" );
- document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".zip.sha256'>SHA256</a></td>" );
- document.write( "<td> </td>" );
-
+ if ( rel_mode == 0 ) {
+ // Release mode
+ document.write( "<td style='text-align: center'><a href='" + URL_SRC + ".tar.bz2'><b>tar.bz2</b></a><br /><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.bz2.asc'>ASC</a>" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.bz2.md5'>MD5</a><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.bz2.sha256'>SHA256</a></td>" );
+ document.write( "<td> </td>" );
+ document.write( "<td style='text-align: center'><a href='" + URL_SRC + ".tar.gz'><b>tar.gz</b></a><br /><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.gz.asc'>ASC</a>" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.gz.md5'>MD5</a><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.gz.sha256'>SHA256</a></td>" );
+ document.write( "<td> </td>" );
+ document.write( "<td style='text-align: center'><a href='" + URL_SRC + ".zip'><b>zip</b></a><br /><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".zip.asc'>ASC</a>" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".zip.md5'>MD5</a><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".zip.sha256'>SHA256</a></td>" );
+ document.write( "<td> </td>" );
+ } else {
+ // Beta release mode
+ document.write( "<td style='text-align: center'><a href='" + URL_SRC + ".tar.bz2'><b>tar.bz2</b></a><br /><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.bz2.asc'>ASC</a>" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.bz2.md5'>MD5</a><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.bz2.sha256'>SHA256</a></td>" );
+ document.write( "<td> </td>" );
+ document.write( "<td style='text-align: center'><a href='" + URL_SRC + ".tar.gz'><b>tar.gz</b></a><br /><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.gz.asc'>ASC</a>" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.gz.md5'>MD5</a><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".tar.gz.sha256'>SHA256</a></td>" );
+ document.write( "<td> </td>" );
+ document.write( "<td style='text-align: center'><a href='" + URL_SRC + ".zip'><b>zip</b></a><br /><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".zip.asc'>ASC</a>" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".zip.md5'>MD5</a><br />" );
+ document.write( " <a " + SMALL + "href='" + URL_HASH + AOO_SRC + ".zip.sha256'>SHA256</a></td>" );
+ document.write( "<td> </td>" );
+ }
document.write( "</tr>" );
ROW_COUNT++;
// At last write the row with the other files (release notes)
document.write( "<tr class='a'><td>-</td><td>-</td><td><small>Other files</small></td>" );
- document.write( "<td style='text-align: center'><a href='../development/releases/" + VERSION + ".html' title='Apache OpenOffice Release Notes'>AOO<br />Release<br />Notes</a></td>" );
+ document.write( "rel_mode: " + rel_mode );
+ if ( rel_mode == 0 ) {
+ // Release mode
+ document.write( "<td style='text-align: center'><a href='../development/releases/" + VERSION + ".html' title='Apache OpenOffice Release Notes'>AOO<br />Release<br />Notes</a></td>" );
+ } else {
+ // Beta release mode
+ document.write( "<td style='text-align: center'><a href='../development/releases/" + BETA_VERSION + "_Beta.html' title='Apache OpenOffice Release Notes'>AOO<br />Release<br />Notes</a></td>" );
+ }
document.write( "<td> </td>" );
document.write( "<td style='text-align: center'><a href='checksums.html' title='How to verify the download with checksums?'>How to<br />verify the<br />download?</a></td>" );
document.write( "<td> </td>" );