Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2023-02-13 19:03:52 +0000
committerJonah Graham2023-02-13 19:03:52 +0000
commit797f999519375fc316e5b72c81cdc3e4e8f11529 (patch)
treec50d72566c94b50fa469c4905d7a5eb0e97d7cbc
parent78e72355df4f6a5f3d49a77c4bfedc9bd8597788 (diff)
downloadorbit-797f999519375fc316e5b72c81cdc3e4e8f11529.tar.gz
orbit-797f999519375fc316e5b72c81cdc3e4e8f11529.tar.xz
orbit-797f999519375fc316e5b72c81cdc3e4e8f11529.zip
Bug 581504: remove unusued scriptsHEADmaster
In Bug 581504 I moved/refactored these scripts to be part of the main Orbit git repo. Change-Id: Ia20ccebec28f34d5e01599305a0b0f7a9a8ca55b
-rw-r--r--scripts/README3
-rwxr-xr-xscripts/commonFiles/Checkmark.gifbin139 -> 0 bytes
-rw-r--r--scripts/commonFiles/DL.footer.php.html81
-rw-r--r--scripts/commonFiles/DL.header.php.html279
-rwxr-xr-xscripts/commonFiles/Fail.gifbin117 -> 0 bytes
-rwxr-xr-xscripts/commonFiles/Questionmark.gifbin1050 -> 0 bytes
-rwxr-xr-xscripts/commonFiles/coolGears.pngbin8879 -> 0 bytes
-rw-r--r--scripts/commonFiles/orbitUtilities.php343
-rw-r--r--scripts/commonFiles/parseProperties.php33
-rw-r--r--scripts/commonFiles/processDropDirectory.php27
-rw-r--r--scripts/commonFiles/tinyReminder.php10
-rw-r--r--scripts/dlconfig.php5
-rw-r--r--scripts/iplog.php317
-rw-r--r--scripts/repo-index.xsl69
-rw-r--r--scripts/sort.xsl22
15 files changed, 0 insertions, 1189 deletions
diff --git a/scripts/README b/scripts/README
deleted file mode 100644
index 58b3fb2..0000000
--- a/scripts/README
+++ /dev/null
@@ -1,3 +0,0 @@
-This directory includes the scripts to generate pages like
-https://download.eclipse.org/tools/orbit/downloads/drops/R20220830213456/
-which is called from releng/scripts/deploy.sh in the Orbit code repo.
diff --git a/scripts/commonFiles/Checkmark.gif b/scripts/commonFiles/Checkmark.gif
deleted file mode 100755
index 689e523..0000000
--- a/scripts/commonFiles/Checkmark.gif
+++ /dev/null
Binary files differ
diff --git a/scripts/commonFiles/DL.footer.php.html b/scripts/commonFiles/DL.footer.php.html
deleted file mode 100644
index 4aeac1c..0000000
--- a/scripts/commonFiles/DL.footer.php.html
+++ /dev/null
@@ -1,81 +0,0 @@
-
-</div>
-</main>
-<!-- /#main-content-container-row -->
-<p id="back-to-top">
- <a class="visible-xs" href="#top">Back to the top</a>
-</p>
-<footer role="contentinfo">
-
- <div class="container">
-
- <div class="row">
- <section id="footer-eclipse-foundation" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0 hidden-print">
- <h2 class="section-title">Eclipse Foundation</h2>
- <ul class="nav">
- <li><a href="https://eclipse.org/org/">About us</a></li>
- <li><a href="https://eclipse.org/org/foundation/contact.php">Contact Us</a></li>
- <li><a href="https://eclipse.org/donate">Donate</a></li>
- <li><a href="https://eclipse.org/org/documents/">Governance</a></li>
- <li><a href="https://eclipse.org/artwork/">Logo and Artwork</a></li>
- <li><a href="https://eclipse.org/org/foundation/directors.php">Board of Directors</a></li>
- </ul>
- </section>
- <section id="footer-legal" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0 hidden-print ">
- <h2 class="section-title">Legal</h2>
- <ul class="nav">
- <li><a href="https://eclipse.org/legal/privacy.php">Privacy Policy</a></li>
- <li><a href="https://eclipse.org/legal/termsofuse.php">Terms of Use</a></li>
- <li><a href="https://eclipse.org/legal/copyright.php">Copyright Agent</a></li>
- <li><a href="https://eclipse.org/org/documents/epl-v10.php">Eclipse Public License </a></li>
- <li><a href="https://eclipse.org/legal/">Legal Resources </a></li>
-
- </ul>
- </section>
-
- <section id="footer-useful-links" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0 hidden-print">
- <h2 class="section-title">Useful Links</h2>
- <ul class="nav">
- <li><a href="https://bugs.eclipse.org/bugs/">Report a Bug</a></li>
- <li><a href="//help.eclipse.org/">Documentation</a></li>
- <li><a href="https://eclipse.org/contribute/">How to Contribute</a></li>
- <li><a href="https://eclipse.org/mail/">Mailing Lists</a></li>
- <li><a href="https://eclipse.org/forums/">Forums</a></li>
- <li><a href="//marketplace.eclipse.org">Marketplace</a></li>
- </ul>
- </section>
-
- <section id="footer-other" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0 hidden-print">
-
- <h2 class="section-title">Other</h2>
- <ul class="nav">
- <li><a href="https://eclipse.org/ide/">IDE and Tools</a></li>
- <li><a href="https://eclipse.org/projects">Community of Projects</a></li>
- <li><a href="https://eclipse.org/org/workinggroups/">Working Groups</a></li>
- </ul>
-
- <ul class="list-inline social-media">
- <li><a href="https://twitter.com/EclipseFdn"><i class="fa fa-twitter-square"></i></a></li>
- <li><a href="https://plus.google.com/+Eclipse"><i class="fa fa-google-plus-square"></i></a></li>
- <li><a href="https://www.facebook.com/eclipse.org"><i class="fa fa-facebook-square"></i> </a></li>
- <li><a href="https://www.youtube.com/user/EclipseFdn"><i class="fa fa-youtube-square"></i></a></li>
- </ul>
-
- </section>
- <div id="copyright" class="col-xs-offset-1 col-sm-14 col-md-24 col-md-offset-0">
- <div>
- <span class="hidden-print"><img
- src="/eclipse.org-common/themes/solstice/public/images/logo/eclipse-logo-bw-800x188.png"
- alt="Eclipse.org black and white logo" width="166" height="39" id="logo-eclipse-white" /></span>
- <p id="copyright-text">Copyright &copy; 2014 The Eclipse Foundation. All Rights Reserved.</p>
- </div>
- </div>
- <a href="#" class="scrollup">Back to the top</a>
- </div>
- </div>
-</footer>
-
-<!-- Placed at the end of the document so the pages load faster -->
-<script src="/eclipse.org-common/themes/solstice/public/javascript/main.min.js"></script>
-</body>
-</html>
diff --git a/scripts/commonFiles/DL.header.php.html b/scripts/commonFiles/DL.header.php.html
deleted file mode 100644
index c23d773..0000000
--- a/scripts/commonFiles/DL.header.php.html
+++ /dev/null
@@ -1,279 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-<meta name="author" content="Christopher Guindon" />
-<meta name="keywords" content="eclipse.org, Eclipse Foundation" />
-<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700,300,600,100" rel="stylesheet" type="text/css">
-<link rel="shortcut icon" href="/eclipse.org-common/themes/solstice/public/images/favicon.ico" />
-<title><?php echo $pageTitle;?></title>
-
-<link rel="stylesheet" href="/eclipse.org-common/themes/solstice/public/stylesheets/styles.min.css">
-
-<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
-<!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
- <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
- <![endif]-->
-
-<style>
-td, th {
- font-family: monospace, monospace;
- padding-left: 1em;
- padding-top: .25em;
- padding-bottom: .25em;
- padding-right: 0;
- text-align: left;
- vertical-align: top;
-}
-
-table.downloads {
- font-family: monospace, monospace;
- width: 80%;
- margin-left: auto;
- margin-right: auto;
- border-collapse: collapse;
-}
-
-td.latest {
- text-align: left;
- padding-left: 1em;
- padding-top: .25em;
- padding-bottom: .25em;
- padding-right: 0;
- width: 100%;
- background-color: #3b335a;
- color: #FFFFFF;
- colspan: 3;
-}
-
-td.main {
- text-align: left;
- padding-left: 1em;
- padding-top: .25em;
- padding-bottom: .25em;
- padding-right: 0;
- width: 100%;
- background-color: #76708C;
- color: #FFFFFF;
-}
-
-td.main {
- text-align: left;
- padding-left: 1em;
- padding-top: .25em;
- padding-bottom: .25em;
- padding-right: 0;
- width: 100%;
- background-color: #76708C;
- color: #FFFFFF;
-}
-
-td.name {
- width: 20%;
- padding-left: 2em;
- text-align: left;
-}
-
-th.name {
- width: 20%;
- text-align: left;
- text-style: bold;
-}
-
-td.status {
- padding-left: 2em;
- text-align: left;
-}
-
-th.status {
- text-align: left;
- text-style: bold;
-}
-
-td.date {
- width: 30%;
- padding-left: 2em;
- text-align: left;
-}
-
-th.date {
- width: 30%;
- text-align: left;
- text-style: bold;
-}
-
-img.cs { /* character size image */
- border: 0;
- width: 1em;
- height: 1em;
- vertical-align: text-bottom;
- margin: 0 0.5em 0 0;
-}
-</style>
-
-</head>
-<body class="" id="body_solstice">
- <a class="sr-only" href="#content">Skip to main content</a>
- <header role="banner">
- <div class="container">
-
- <div id="row-toolbar" class="text-right hidden-print">
-
- <div id="row-toolbar-col" class="col-md-24">
- <ul class="list-inline">
- <!-- leaving space instead of "sign in" -->
- <li>&nbsp;</li>
- <li>&nbsp;</li>
- </ul>
- </div>
-
- </div>
-
- <div id="row-logo-search">
- <div id="header-left" class="col-sm-14 col-md-16 col-lg-19">
- <div class="row">
- <div class="hidden-xs">
- <a href="https://eclipse.org/"><img
- src="/eclipse.org-common/themes/solstice/public/images/logo/eclipse-800x188.png" alt="Eclipse.org logo"
- class="logo-eclipse-default img-responsive" /></a>
- </div>
- <div id="main-menu" class="navbar row yamm">
- <div id="navbar-collapse-1" class="navbar-collapse collapse">
- <ul class="nav navbar-nav">
- <li><a href="https://eclipse.org/users/" target="_self">Getting Started </a></li>
- <li><a href="https://eclipse.org/membership/" target="_self">Members</a></li>
- <li><a href="https://eclipse.org/projects/" target="_self">Projects</a></li>
- <li class="dropdown visible-xs"><a href="#" data-toggle="dropdown" class="dropdown-toggle">Community <b
- class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="https://marketplace.eclipse.org">Marketplace</a></li>
- <li><a href="https://events.eclipse.org">Events</a></li>
- <li><a href="//www.planeteclipse.org/">Planet Eclipse</a></li>
- <li><a href="https://eclipse.org/community/eclipse_newsletter/">Newsletter</a></li>
- <li><a href="https://www.youtube.com/user/EclipseFdn">Videos</a></li>
- </ul></li>
- <li class="dropdown visible-xs"><a href="#" data-toggle="dropdown" class="dropdown-toggle">Participate <b
- class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="https://bugs.eclipse.org/bugs/">Report a Bug</a></li>
- <li><a href="https://eclipse.org/forums/">Forums</a></li>
- <li><a href="https://eclipse.org/mail/">Mailing Lists</a></li>
- <li><a href="https://wiki.eclipse.org/">Wiki</a></li>
- <li><a href="https://wiki.eclipse.org/IRC">IRC</a></li>
- <li><a href="https://eclipse.org/contribute/">How to Contribute</a></li>
- </ul></li>
- <li class="dropdown visible-xs"><a href="#" data-toggle="dropdown" class="dropdown-toggle">Working Groups
- <b class="caret"></b>
- </a>
- <ul class="dropdown-menu">
- <li><a href="https://wiki.eclipse.org/Auto_IWG">Automotive</a></li>
- <li><a href="https://iot.eclipse.org">Internet of Things</a></li>
- <li><a href="https://locationtech.org">LocationTech</a></li>
- <li><a href="https://lts.eclipse.org">Long-Term Support</a></li>
- <li><a href="https://polarsys.org">PolarSys</a></li>
- <li><a href="https://science.eclipse.org">Science</a></li>
- </ul></li>
- <!-- More -->
- <li class="dropdown hidden-xs"><a data-toggle="dropdown" class="dropdown-toggle">More<b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li>
- <!-- Content container to add padding -->
- <div class="yamm-content">
- <div class="row">
- <ul class="col-sm-8 list-unstyled">
- <li><p>
- <strong>Community</strong>
- </p></li>
- <li><a href="https://marketplace.eclipse.org">Marketplace</a></li>
- <li><a href="https://events.eclipse.org">Events</a></li>
- <li><a href="//www.planeteclipse.org/">Planet Eclipse</a></li>
- <li><a href="https://eclipse.org/community/eclipse_newsletter/">Newsletter</a></li>
- <li><a href="https://www.youtube.com/user/EclipseFdn">Videos</a></li>
- </ul>
- <ul class="col-sm-8 list-unstyled">
- <li><p>
- <strong>Participate</strong>
- </p></li>
- <li><a href="https://bugs.eclipse.org/bugs/">Report a Bug</a></li>
- <li><a href="https://eclipse.org/forums/">Forums</a></li>
- <li><a href="https://eclipse.org/mail/">Mailing Lists</a></li>
- <li><a href="https://wiki.eclipse.org/">Wiki</a></li>
- <li><a href="https://wiki.eclipse.org/IRC">IRC</a></li>
- <li><a href="https://eclipse.org/contribute/">How to Contribute</a></li>
- </ul>
- <ul class="col-sm-8 list-unstyled">
- <li><p>
- <strong>Working Groups</strong>
- </p></li>
- <li><a href="https://wiki.eclipse.org/Auto_IWG">Automotive</a></li>
- <li><a href="https://iot.eclipse.org">Internet of Things</a></li>
- <li><a href="https://locationtech.org">LocationTech</a></li>
- <li><a href="https://lts.eclipse.org">Long-Term Support</a></li>
- <li><a href="https://polarsys.org">PolarSys</a></li>
- <li><a href="https://science.eclipse.org">Science</a></li>
- </ul>
- </div>
- </div>
- </li>
- </ul></li>
- </ul>
- </div>
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
- <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span
- class="icon-bar"></span> <span class="icon-bar"></span>
- </button>
- <a href="https://eclipse.org/" class="navbar-brand visible-xs"><img
- src="/eclipse.org-common/themes/solstice/public/images/logo/eclipse-800x188.png" alt="Eclipse.org logo"
- width="180" class="logo-eclipse-default" /></a>
- </div>
- </div>
- </div>
- </div>
- <div id="header-right" class="form-inline col-sm-10 col-md-8 col-lg-5 hidden-print hidden-xs">
- <div id="header-right-container">
- <div id="custom-search-form">
- <form action="//www.google.com/cse" id="form-eclipse-search" role="form" class="input-group">
- <input type="hidden" name="cx" value="017941334893793413703:sqfrdtd112s" /> <input id="search-box"
- placeholder="Search eclipse.org" type="text" name="q" size="25" class="form-control" /> <span
- class="input-group-btn">
- <button class="btn btn-default" type="submit">
- <i class="fa fa-search"></i>
- </button>
- </span>
- </form>
- </div>
- <!-- /input-group -->
- <script type="text/javascript"
- src="//www.google.com/coop/cse/brand?form=searchbox_017941334893793413703%3Asqfrdtd112s&amp;lang=en"></script>
- <a id="btn-call-for-action" href="https://eclipse.org/downloads/" class="btn btn-huge btn-warning"><i
- class="fa fa-download"></i> Packages</a>
- </div>
- </div>
-
- </div>
-
- </div>
- </header>
- <section id="breadcrumb" class="defaut-breadcrumbs hidden-print">
- <div class="container">
- <ol class="breadcrumb">
- <li><a href="https://www.eclipse.org/">Home</a></li>
- <li><a href="https://www.eclipse.org/projects/">Projects</a></li>
- <li><a href="https://www.eclipse.org/orbit/">Orbit</a></li>
- <?php
- if (isset($previousCrumb)) {
- echo "$previousCrumb";
- }
- ?>
- <li class="active">
- <?= $pageTitle ?>
- </li>
- </ol>
- </div>
- </section>
- <main role="main">
- <div class="container background-image-none" id="novaContent">
diff --git a/scripts/commonFiles/Fail.gif b/scripts/commonFiles/Fail.gif
deleted file mode 100755
index 28bba66..0000000
--- a/scripts/commonFiles/Fail.gif
+++ /dev/null
Binary files differ
diff --git a/scripts/commonFiles/Questionmark.gif b/scripts/commonFiles/Questionmark.gif
deleted file mode 100755
index c75a4b9..0000000
--- a/scripts/commonFiles/Questionmark.gif
+++ /dev/null
Binary files differ
diff --git a/scripts/commonFiles/coolGears.png b/scripts/commonFiles/coolGears.png
deleted file mode 100755
index db8ba89..0000000
--- a/scripts/commonFiles/coolGears.png
+++ /dev/null
Binary files differ
diff --git a/scripts/commonFiles/orbitUtilities.php b/scripts/commonFiles/orbitUtilities.php
deleted file mode 100644
index d4b7beb..0000000
--- a/scripts/commonFiles/orbitUtilities.php
+++ /dev/null
@@ -1,343 +0,0 @@
-<?php
-$bundlesToUnzipList = array ();
-function cleanup($string) {
- $result = str_replace ( "\n", "", $string );
- $result = str_replace ( "\r", "", $result );
- $result = trim ( $result );
- return $result;
-}
-class BundleToUnzip {
- public $id = "";
- public $version = "";
- function __construct($id, $version) {
- $this->id = trim ( $id );
- $this->version = trim ( $version );
- }
-}
-class Bundle {
- public $symbolicId = "";
- public $version = "";
- public $qualifier = "";
- public $fullfilename = "";
- public $pack = "";
- public $cq = "";
- public $name = "";
- public $email = "";
- public $note = "";
- public $sourceBundle;
- function __construct($aFullFileNameEntry, $logmissingipdata) {
- $START_GROUP = "(";
- $END_GROUP = ")";
- $UNDERSCORE = "_";
- $BACKSLASH = "\\";
- $LITERAL_PERIOD = "\\.";
- $ANYDIGITS = "\d*";
- $ANY = ".*";
- $ZERO_OR_ONE = "?";
- $PERL_DELIM = "/";
-
- $this->fullfilename = $aFullFileNameEntry;
-
- $pattern = $PERL_DELIM . $START_GROUP . $ANY . $END_GROUP . $UNDERSCORE . $START_GROUP . $ANYDIGITS . $LITERAL_PERIOD . $ANYDIGITS . $LITERAL_PERIOD . $ANYDIGITS . $END_GROUP . $LITERAL_PERIOD . $ZERO_OR_ONE . $START_GROUP . $ANY . $END_GROUP . $ZERO_OR_ONE . $LITERAL_PERIOD . $START_GROUP . "zip" . "|" . "jar" . $END_GROUP . $PERL_DELIM;
-
- // echo "";
- // echo "pattern: " . $pattern . "<br />";
- // echo "input: " . $this->fullfilename . "<br />";
- // echo "";
- $validMatch = preg_match ( $pattern, $aFullFileNameEntry, $matches );
- if ($validMatch) {
- // $item = 0;
- // foreach ($matches as $match) {
- // echo "match " . $item . ": " . $match . "<br />";
- // $item = $item + 1;
- // }
- $this->symbolicId = trim ( $matches [1] );
- $this->version = trim ( $matches [2] );
- if (array_key_exists ( 3, $matches )) {
- $this->qualifier = $matches [3];
- }
- $this->pack = checkPacked ( $this->symbolicId, $this->version );
- } else {
- $this->symbolicId = "Error: apparently not a valid bundle name/version: " . $this->fullfilename;
- }
-
- $xmldatafile = "ip_logs/" . $this->symbolicId . ".xml";
- // echo "filename: " . $xmldatafile . "<br />";
- if (file_exists ( $xmldatafile )) {
- // Load the XML source
- $xml = new DOMDocument ();
- $xml->load ( $xmldatafile );
- // find the version element
-
- $xpath = new DOMXPath ( $xml );
- $projectNodes = $xpath->query ( "//project[@version='$this->version']" );
- $nNodes = $projectNodes->length;
- if ($nNodes > 0) {
- $projectNode = $projectNodes->item ( 0 );
- $zElements = $projectNode->getElementsByTagName ( "ipzilla" );
- foreach ( $zElements as $zElement ) {
- $this->cq = $zElement->getAttribute ( "bug_id" );
- }
-
- $cElements = $projectNode->getElementsByTagName ( "contact" );
- foreach ( $cElements as $cElement ) {
- $nElement = $cElement->getElementsByTagName ( "name" );
- $this->name = $nElement->item ( 0 )->nodeValue;
- $this->name = cleanup ( $this->name );
- $mElement = $cElement->getElementsByTagName ( "email" );
- $this->email = $mElement->item ( 0 )->nodeValue;
- $this->email = cleanup ( $this->email );
- $this->email = str_replace ( "@", "*at*", $this->email );
- }
-
- // TODO: avoid the html markup <p> by using an array, or similar
- $notesElements = $projectNode->getElementsByTagName ( "notes" );
- foreach ( $notesElements as $notesElement ) {
- $noteElement = $notesElement->getElementsByTagName ( "note" );
- foreach ( $noteElement as $niElement ) {
- $notevalue = $niElement->nodeValue;
- $notevalue = cleanup ( $notevalue );
- if ($notevalue != "") {
- $this->note = $this->note . "<p>" . $notevalue . "</p>";
- }
- }
- }
- } else {
- $this->cq = "No project info for this version?";
- if ($logmissingipdata) {
- // source handled differently, elsewhere
- if (! endsWith ( $xmldatafile, "source.xml" )) {
- writeIPLogError ( $xmldatafile, $this->cq, $this->version );
- }
- }
- }
- } else {
- $this->cq = "No data file found";
- if ($logmissingipdata) {
- // source handled differently, elsewhere
- if (! endsWith ( $xmldatafile, "source.xml" )) {
- writeIPLogError ( $xmldatafile, $this->cq, null );
- }
- }
- }
- }
- function __toString() {
- return $this->symbolicId . " " . $this->version;
- }
-}
-function writeIPLogError($ipfilename, $errmessage, $expectedIPLogVersion) {
- // $ipoutfilename=$_SERVER['DOCUMENT_ROOT']."//iplogFileErrors.txt";
- // echo "docroot: " . $_SERVER['DOCUMENT_ROOT'] . "\n";
- // echo "dir: " . __DIR__ . "\n";
- // echo "file: " . __FILE__ . "\n";
- global $ipouterrors;
- // $ipoutfilename=__DIR__."/iplogFileErrors.txt";
- // $iphandle = fopen($ipoutfilename, "a+b");
- $writestring = "\nError in IP_log file:\n\t$ipfilename\n\t$errmessage\n";
- if ($expectedIPLogVersion != null) {
- $writestring = $writestring . "\tVersion expected in IP log xml file: $expectedIPLogVersion\n";
- }
- $ipouterrors [] = $writestring;
- // if (fwrite($iphandle, $writestring) === false) {
- // echo "Cannot write to $ipoutfilename. <br />";
- // }
- // fclose($iphandle);
-}
-function endsWith($str, $sub) {
- return (substr ( $str, strlen ( $str ) - strlen ( $sub ) ) === $sub);
-}
-function stripSuffix($str, $suffix) {
- $result = $str;
- if (endsWith ( $str, $suffix )) {
- $pos = strrpos ( $str, $suffix );
- $result = substr ( $str, 0, $pos );
- }
- return $result;
-}
-function getBundle($list, $id, $version) {
- foreach ( $list as $bundle ) {
- if ($bundle->symbolicId == $id && $bundle->version == $version) {
- return $bundle;
- }
- }
-}
-function countDistinct($list) {
- $idList = array ();
- foreach ( $list as $bundle ) {
- $idList [$bundle->symbolicId] = $bundle->symbolicId;
- }
- return count ( array_unique ( $idList ) );
-}
-function countDistinctCQs($list) {
- $idList = array ();
- foreach ( $list as $bundle ) {
- $idList [$bundle->cq] = $bundle->cq;
- }
- return count ( array_unique ( $idList ) );
-}
-function getListOfCQs($list) {
- $COMMA = "%2C";
- $idList = "";
- $moreThanOne = false;
- foreach ( $list as $bundle ) {
- if ($moreThanOne) {
- $idList = $idList . $COMMA . $bundle->cq;
- } else {
- $idList = $bundle->cq;
- $moreThanOne = true;
- }
- }
- return $idList;
-}
-function countTotal($list) {
- $result = 0;
- foreach ( $list as $bundle ) {
- // always one for bundle
- $result = $result + 1;
- if (isset ( $bundle->sourceBundle )) {
- // one for source, if provided
- $result = $result + 1;
- }
- }
- return $result;
-}
-function getBundleList($dir) {
-
- // init required data
- getBundlesToUnzip ();
-
- // prepare arrary of bundles to display
- $bundleList = array ();
-
- // pass 1
- $aDirectory = dir ( $dir );
- while ( $anEntry = $aDirectory->read () ) {
-
- // we are just looking for jar and zip files, no directories, and
- // just displaying the name
- if ($anEntry != "." && $anEntry != ".." && ((endsWith ( $anEntry, ".zip" ) || endsWith ( $anEntry, ".jar" )))) {
-
- // echo "anEntryName: " . $anEntry . "<br />";
- $aBundle = new Bundle ( $anEntry, true );
- // echo "";
- // echo "bundle: " . $aBundle . "<br />";
- // echo "id: " . $aBundle->symbolicId . "<br />";
- // echo "";
-
- if (endsWith ( $aBundle->symbolicId, ".source" )) {
- // add to matching bundle object
- // skip source this pass
- } else {
- $bundleList [$aBundle->fullfilename] = $aBundle;
- }
- }
- }
- $aDirectory->close ();
-
- // pass 2
- $aDirectory = dir ( $dir );
- // loop again to pick up source bundles
- while ( $anEntry = $aDirectory->read () ) {
-
- // we are just looking for jar and zip files, no directories, and
- // just displaying the name
- if ($anEntry != "." && $anEntry != ".." && ((endsWith ( $anEntry, ".zip" ) || endsWith ( $anEntry, ".jar" )))) {
-
- // echo "anEntryName: " . $anEntry . "<br />";
- $aBundle = new Bundle ( $anEntry, false );
- // echo "";
- // echo "bundle: " . $aBundle . "<br />";
- // echo "id: " . $aBundle->symbolicId . "<br />";
- // echo "";
-
- if (endsWith ( $aBundle->symbolicId, ".source" )) {
- // add to matching bundle object
- // this logic assumes source bundle is always found following
- // regular bundle
- // may need to make two passes?
- // also assumes there's just one id-version (i.e. not multiple
- // qualifiers).
- $correspondingID = stripSuffix ( $aBundle->symbolicId, ".source" );
- $correspondingBundle = getBundle ( $bundleList, $correspondingID, $aBundle->version );
- if (isset ( $correspondingBundle )) {
- $correspondingBundle->sourceBundle = $aBundle;
- } else {
- echo "Logic Error: PHP script found a source bundle, " . $aBundle->symbolicId . ", before the corresponding code bundle";
- }
- } else {
- // skip bundles this time, just getting source bundles
- }
- }
- }
- $aDirectory->close ();
-
- return $bundleList;
-}
-function getBuildBaseName($dropDirectory) {
- // for now, a simply heuristic to get build name ... same as
- // base directory name. It's done as a seperate function, though,
- // since
- // in future, may have to read a property file, or something.
- return basename ( $dropDirectory );
-}
-function fileSizeForDisplay($filename) {
- $onekilo = 1024;
- $onemeg = $onekilo * $onekilo;
- $criteria = 10 * $onemeg;
- $scaleChar = "M";
- if (file_exists ( $filename )) {
- $zipfilesize = filesize ( $filename );
- if ($zipfilesize > $criteria) {
- $zipfilesize = round ( $zipfilesize / $onemeg, 0 );
- $scaleChar = "M";
- } else {
- $zipfilesize = round ( $zipfilesize / $onekilo, 0 );
- $scaleChar = "K";
- }
- } else {
- $zipfilesize = 0;
- }
- $result = "(" . $zipfilesize . $scaleChar . ")";
- return $result;
-}
-function getBundlesToUnzip() {
- global $bundlesToUnzipList;
- $file_handle = fopen ( "bundlesToUnzip.properties", "r" );
- if ($file_handle !== false) {
- while ( ! feof ( $file_handle ) ) {
- $line = fgets ( $file_handle );
- if (! (strpos ( $line, "#" ) === 0)) {
- $dataline = explode ( ",", $line );
- $id = $dataline [0];
- // guard against blank or empty lines?
- // TODO: not sure how they get in there to begin with?
- if (! empty ( $id )) {
- $version = $dataline [1];
- $bundleToUnzip = new BundleToUnzip ( $id, $version );
- $bundlesToUnzipList [] = $bundleToUnzip;
- }
- }
- }
- fclose ( $file_handle );
- }
- return $bundlesToUnzipList;
-}
-function checkPacked($id, $version) {
- // echo "id: $id version: $version \n <br />";
- global $bundlesToUnzipList;
- $result = "";
- $arrayLength = sizeof ( $bundlesToUnzipList );
- for($i = 0; $i < $arrayLength; $i ++) {
- $bundleToUnzip = $bundlesToUnzipList [$i];
- // echo " compareBundleToUnzip: id: $bundleToUnzip->id version:
- // $bundleToUnzip->version \n <br />";
-
- if ($id == $bundleToUnzip->id && $version == $bundleToUnzip->version) {
- $result = " (unzip)";
- break;
- }
- }
- return $result;
-}
-
-?>
diff --git a/scripts/commonFiles/parseProperties.php b/scripts/commonFiles/parseProperties.php
deleted file mode 100644
index 482882b..0000000
--- a/scripts/commonFiles/parseProperties.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-
- function parseProperties($filename)
- {
- $properties;
- $i = 0;
- $handle = fopen($filename, "r");
- if ($handle)
- {
- $size = filesize($filename);
- $content = fread($handle, $size);
- fclose($handle);
-
- $lineArray = explode("\n",$content);
-
- while(list(,$line) = each($lineArray)) {
- $line = trim($line);
- if (strlen($line) > 0) {
- //echo $line, "<br />";
- $propertyPair = explode("=", $line);
- $propertyPair[0] = trim($propertyPair[0], " \"\'");
- $propertyPair[1] = trim($propertyPair[1], " \"\'");
-
- $properties[$propertyPair[0]] = $propertyPair[1];
- $i++;
- }
- }
- }
- return $properties;
- }
-
-?>
diff --git a/scripts/commonFiles/processDropDirectory.php b/scripts/commonFiles/processDropDirectory.php
deleted file mode 100644
index 3ade74a..0000000
--- a/scripts/commonFiles/processDropDirectory.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-$buildTypePart = substr ( $anEntryLine [2], 0, 1 ); // expect M, I, etc.
-$buckets [$buildBranch] [$buildTypePart] [] = $aDropDirectoryName;
-
-$timePart = substr ( $anEntryLine [2], 1 );
-$year = substr ( $timePart, 0, 4 );
-$month = substr ( $timePart, 4, 2 );
-$day = substr ( $timePart, 6, 2 );
-$hour = substr ( $timePart, 8, 2 );
-$minute = substr ( $timePart, 10, 2 );
-
-$newTimePart = "$year-$month-$day $hour:$minute UTC";
-
-$timeStamp = strtotime ( $newTimePart );
-
-$timeStamps [$buildBranch . "/" . $artifactTimeStamp . $anEntry] = gmdate ( "D, j M Y -- H:i \(\U\T\C\)", $timeStamp );
-
-if ((sizeof ( $latestTimeStamp [$buildBranch] ) > 0) && (isset ( $latestTimeStamp [$buildBranch] [$buildTypePart] ))) {
- if ($timeStamp > $latestTimeStamp [$buildBranch] [$buildTypePart]) {
- $latestTimeStamp [$buildBranch] [$buildTypePart] = $timeStamp;
- $latestFile [$buildBranch] [$buildTypePart] = $aDropDirectoryName;
- }
-} else {
- $latestTimeStamp [$buildBranch] [$buildTypePart] = $timeStamp;
- $latestFile [$buildBranch] [$buildTypePart] = $aDropDirectoryName;
-}
-?> \ No newline at end of file
diff --git a/scripts/commonFiles/tinyReminder.php b/scripts/commonFiles/tinyReminder.php
deleted file mode 100644
index 796ecd1..0000000
--- a/scripts/commonFiles/tinyReminder.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-// tiny banner to remind when looking at "local" or "test" machine results
-$serverName = $_SERVER["SERVER_NAME"];
-
-
-if (!stristr($serverName, "download.eclipse.org")) {
- echo "<p style=\"text-align: center;\">Reminder: this is <code>$serverName</code>. See also <a href=\"https://download.eclipse.org/tools/orbit\">Live public eclipse orbit site</a>.</p>";
-}
-
diff --git a/scripts/dlconfig.php b/scripts/dlconfig.php
deleted file mode 100644
index 4cc027c..0000000
--- a/scripts/dlconfig.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-$relativePath=".";
-$imagePath="../../..";
-$previousCrumb="<li><a href=\"https://download.eclipse.org/tools/orbit/downloads/\">Orbit Downloads</a></li>";
diff --git a/scripts/iplog.php b/scripts/iplog.php
deleted file mode 100644
index 1045c97..0000000
--- a/scripts/iplog.php
+++ /dev/null
@@ -1,317 +0,0 @@
-<?php
-
-ini_set("display_errors", true);
-error_reporting (E_ALL);
-$serverName = $_SERVER["SERVER_NAME"];
-if ("download.eclipse.org" === $serverName) {
- include "dlconfigOnDownloads.php";
-} else {
- include "dlconfig.php";
-}
-$ipouterrors= array();
-
-include $relativePath."/commonFiles/orbitUtilities.php";
-// previous page is for "bread crumbs"
-
-# get path to use when resolving relative children repositories
-if (isset($_GET['repoPath'])) {
- $targetServer = 'https://download.eclipse.org';
- $rPath = $_GET['repoPath'];
- $repoPath = $targetServer . '/' . $rPath;
-
- // ... /N20161019150530/repository
- $start = strrpos($rPath, '/', -12);
- $buildlabel = substr($rPath, $start + 1, 15);
-} else {
- echo 'Missing repoPath.';
- exit;
-}
-
-$buildURL = "";
-if (isset($_GET['buildURL'])) {
- $buildURL = $_GET['buildURL'];
-}
-
-$displayablezipfilesize="(0M)";
-if (isset($_GET['zipFileSize'])) {
- $displayablezipfilesize = $_GET['zipFileSize'];
-}
-
-$pageTitle="Orbit Build $buildlabel";
-
-require $relativePath."/commonFiles/DL.header.php.html";
-
-?>
-
-<?php
-
-// detect if on Eclipse download machine and use Eclipse mirror URLs
-$pos = strpos(getcwd(),'/tools/orbit/committers/drops/');
-if($pos === false) {
- $downloadUrlPrefix = '';
- $downloadWithRedirectUrlPrefix = '';
-}
-else {
- $downloadUrlPrefix = 'https://www.eclipse.org/downloads/download.php?file=/tools/orbit/committers/drops/' . $buildlabel . '/';
- $downloadWithRedirectUrlPrefix = 'https://www.eclipse.org/downloads/download.php?r=1&file=/tools/orbit/committers/drops/' . $buildlabel . '/';
-}
-
-# get repo content
-if ( $_SERVER['REQUEST_METHOD'] === 'POST' ) {
- if ( $_SERVER['CONTENT_LENGTH'] > 1000) {
- echo 'Input repository is too large. The input repository should ' .
- 'be a composite metadata repository.';
- exit;
-
- }
- $repoXml = trim(file_get_contents('php://input'));
-}
-
-# read composite content
-$xmlDoc = new DOMDocument();
-if ( isset($repoXml) ) {
- $xmlDoc->loadXML( $repoXml );
-} else {
- if(!headers_sent())
- header($_SERVER['SERVER_PROTOCOL'].' 400 Missing Repo Data', true, 400);
- else
- die('Need repo data!');
- exit;
-}
-
-$xslContent = file_get_contents( 'repo-index.xsl' );
-$xslDoc = new DOMDocument();
-$xslDoc->loadXML( $xslContent );
-
-# transform to HTML
-$proc = new XSLTProcessor();
-$proc->importStylesheet( $xslDoc );
-
-echo "<h1>Orbit Build: $buildlabel</h1>";
-echo "<h2>Useful Information</h2>";
-echo "<p>In addition to the bundles themselves, the following maps, project sets, and test results are useful for committers and consumers:</p>";
-
-// If a build fails, especially early, many of the following files won't exist.
-// So, we don't produce "link" to them. But, we still leave a descriptive line, in case they
-// disappear (are not produced) for some other reason, then we'd notice.
-// Subsequently decided to put in "marker" file for when build "fails early", so
-// for now will skip these files we know won't exist, if we fail early, but
-// basic logic (of checking for existence) is still sound.
-// Note: the above "directory.txt" file should always exist, as it is
-// "raw" map file, retrieved first, and used during the build, so might be
-// required to help debugging a failure.
-
-$failedEarlyfile="buildFailedEarly.txt";
-if (!file_exists($failedEarlyfile)) {
-
- $fname="iplog-$buildlabel.html";
- if (file_exists($fname)) {
- echo "<a href=\"$fname\">Bundle IP Log Information</a><br />";
- } else {
- echo "Bundle IP Log Information does not exist. <br />";
- }
-
- // Caution this "antBuilderOutput" is here twice, once, here, for
- // normal case, and later in "failed early" else case.
- // TODO: there's gotta be a better way.
- $fname=$buildURL;
- if ($fname != "") {
- echo "<a href=\"$fname\">Maven Build Output</a><br />";
- } else {
- echo "Maven Build Output does not exist. <br />";
- }
-
-
- $fname="comparator.log";
- if (file_exists($fname)) {
- echo "<a href=\"$fname\">P2 Mirror Comparator Output</a><br />";
- } else {
- echo "P2 Mirror Comparator Output does not exist. <br />";
- }
-
- // the referenceRepoExists (and Not) file is an indicator file whose contents is the name of the
- // reference repo we tried to use in the build. Elsewhere, we test for mere existence of the repository,
- // and use "fail" icon if it did not exist,
- // but even if it exists, that does not necessarily mean it is the right repository to be using, so we display
- // the name of the repository directory for easy manual inspection (though, is a little redundent with
- // comparator log).
- // note to self: use file_get_contents to reading contents into a string.
- if (file_exists("referenceRepoExists")) {
- echo "<img class=\"cs\" alt=\"Repo exists\" src=\"".$imagePath."/commonFiles/Checkmark.gif\" /> Repo used for comparison during mirroring: ";
- readfile("referenceRepoExists");
- echo "<br />";
- }
- elseif (file_exists("referenceRepoExistsNot")) {
- echo "<img class=\"cs\" alt=\"Repo not found\" src=\"".$imagePath."/commonFiles/Fail.gif\" /> Bad build. Repo to use while mirroring was not found:<br />\n";
- readfile("referenceRepoExistsNot");
- echo "<br />\n";
- }
- else {
- echo "<img class=\"cs\" alt=\"Repo indicator file not found\" src=\"".$imagePath."/commonFiles/Fail.gif\" /><br />\n";
- echo "Repository indicator file not found. Probably a bad build or build script error? Check Ant Build Output.";
- echo "<br />\n";
- }
-
- $fname="results-$buildlabel.xml";
- if (file_exists($fname)) {
- echo "<a href=\"results-$buildlabel.xml\">\n";
- // the testsFailed.txt file is an intentional indicator (only) file
- if (file_exists("testsFailed.txt")) {
- echo "<img class=\"cs\" alt=\"Tests Failed\" src=\"".$imagePath."/commonFiles/Fail.gif\" />\n";
- }
- elseif (file_exists("testsOk.txt")) {
- echo "<img class=\"cs\" alt=\"Tests Passed\" src=\"".$imagePath."/commonFiles/Checkmark.gif\" />\n";
- }
- echo "Test Results</a><br />\n";
- } else {
- echo "Test Results do not exist. <br />\n";
- }
-
- // We get the list "early" so we have results of IP Log checks at right point in page.
- // $bundleList = getBundleList("./repository/plugins");
-
- $sizeofiperrors=count($ipouterrors);
- //echo "count: $sizeofiperrors <br />";
- //echo "contents: <br />";
- //dump($ipouterrors);
- if ($sizeofiperrors > 0) {
- // this likely won't have "permission" to write files on web server.
- // we execute the index.php file during "build" to get this file written.
- $filenameerr="testsFailedIPLog.txt";
- $dataerr="";
- foreach ($ipouterrors as $iperrs) {
- $dataerr = $dataerr.$iperrs."<br />\n";
- }
- file_put_contents ($filenameerr, $dataerr);
- //
- echo "<img class=\"cs\" alt=\"Checks Failed\" src=\"".$imagePath."/commonFiles/Fail.gif\" />" . "IP Log XML File Checks: Errors Found: <br />\n";
- foreach ($ipouterrors as $iperrs) {
- echo "<li>".$iperrs."</li>\n";
- }
- } else {
- echo "<img class=\"cs\" alt=\"Checks Ok\" src=\"".$imagePath."/commonFiles/Checkmark.gif\" />" ."IP Log XML File Checks: Ok <br />\n";
- }
-
- echo "<a href=\"reporeports/\">CBI Repository Analysis Reports</a><br />\n";
-
- echo "</p>\n";
-
- $currentPageURLSegments = $repoPath;
- echo "<h2>Orbit Build Repository</h2>\n";
- echo "<p>For HTTP access, a p2 repository for this specific build can be found by adding 'repository' to the end of this download site URL, namely:<br />";
- echo "<a href=\"${currentPageURLSegments}\">${currentPageURLSegments}</a></p>";
-
-if (file_exists("repository/index.xml.gz")) {
- echo "<p>For use with tools such as <a href=\"https://bndtools.org/\">bndtools</a>, an <a href=\"https://www.osgi.org/Main/HomePage\">OSGi</a> repository index file for this specific build can be found by adding 'repository/index.xml.gz' to the end of this download site URL, namely:<br />";
- echo "<a href=\"${currentPageURLSegments}repository/index.xml.gz\">${currentPageURLSegments}repository/index.xml.gz</a></p>";
-}
-
-
- echo "<h2>Zipped Orbit Build Repository</h2>";
- echo "<p>The following zip file is a compressed-archive version of the above repository, for those that need or desire to have a copy of the whole repository on their local machine:<br />";
- echo "<a href=\"{$downloadUrlPrefix}orbit-buildrepo-$buildlabel.zip\">orbit-buildrepo-$buildlabel.zip</a> (<a href=\"checksum/orbit-buildrepo-$buildlabel.zip.md5\">md5</a>) (<a href=\"checksum/orbit-buildrepo-$buildlabel.zip.sha1\">sha1</a>) $displayablezipfilesize</p>";
-
-} else {
- echo "Build failed early. Check <a href=\"$failedEarlyfile\">short summary</a> or full Ant Build Output.<br />";
- // Caution this "antBuilderOutput" is here twice, once, here, for
- // "failed early" case, and above, for normal case. TODO: there's gotta be a better way.
- $fname="antBuilderOutput.log";
- if (file_exists($fname)) {
- echo "<a href=\"$fname\">Ant Build Output</a><br />";
- } else {
- echo "Ant Build Output does not exist. <br />";
- }
-}
-
-
-$childRepoXmlList = array();
-$children = $xmlDoc->getElementsByTagName('child');
-
-$bug506001Loc = 'tools/orbit/bug506001';
-
-foreach ($children as $c) {
- $childLoc = $c->getAttribute('location');
- // ... /N20161019150530/repository
- $start = strrpos($childLoc, '/', -12);
- $childBuildLabel = substr($childLoc, $start + 1, 15);
-
- $childContent = file_get_contents($targetServer . '/' . $bug506001Loc . '/' . $childBuildLabel . '/' . 'content.xml');
- if (! $childContent) {
- echo 'Could not find ' . $bug506001Loc . '/' . $childBuildLabel . '/' . 'content.xml' . ' on server.';
- exit;
- }
-
- $childRepoXml = trim($childContent);
- $childRepoXmlList[$childLoc] = $childRepoXml;
-}
-
-
-$nBundles = 0;
-$nDistinctBundles = 0;
-$nTotalBundles = 0;
-$nDistinctCQs = 0;
-
-foreach ($childRepoXmlList as $childRepoXml) {
- $childXmlDoc = new DOMDocument();
- $childXmlDoc->loadXML($childRepoXml);
- $xpath = new DOMXpath($childXmlDoc);
-
- $nBundles += $xpath->evaluate("count(/repository/units/unit[provides/provided/@namespace='org.eclipse.equinox.p2.eclipse.type' and provides/provided/@name='bundle']/@id)");
- $nDistinctBundles += $xpath->evaluate("count(/repository/units/unit[provides/provided/@namespace='org.eclipse.equinox.p2.eclipse.type' and provides/provided/@name='bundle' and not(preceding::unit/@id=../../@id)]/@id)");
- $nTotalBundles += $xpath->evaluate("count(/repository/units/unit[provides/provided/@name='bundle' or provides/provided/@name='source']/@id)");
- $nDistinctCQs += $xpath->evaluate("count(/repository/units/unit/properties/property[@name='iplog.bug_id' and not(preceding::property/@value=@value)])");
-}
-
-echo "<h2>Individual Bundles</h2>";
-
-echo "<h3>Statistics</h3>";
-echo "<p>Number of distinct third party packages: $nDistinctBundles.<br />";
-echo "Number of bundles (including different versions): $nBundles. <br />";
-echo "Total number of bundles (including source): $nTotalBundles.";
-
-echo "<h3>CQ Bookkeeping</h3>";
-echo "Total number of distinct CQs: $nDistinctCQs. <br />";
-echo "<p>Note: IPZilla is a database for tracking CQs (Contribution Questionnaires) and is only accessible by committers, ";
-echo "since in theory they might contain some non-public information. But, don't worry ... if you are not a committer you are not";
-echo " missing anything ... they are pretty dry! These (and the links provided here) are just some aides for committers to double check our book-keeping.</p>";
-
-echo "<h3>Table of Bundles</h3>";
-echo "<table class=\"table table-striped table-condensed\">";
-echo "<tr>";
-echo "<th align=\"left\">Bundle</th>";
-echo "<th>Source</th>";
-echo "<th>Version</th>";
-echo "<th>Orbit CQ</th>";
-echo "<th>Orbit Contact</th>";
-echo "</tr>";
-
-$outHTML = '';
-foreach ($childRepoXmlList as $childLoc => $childRepoXml) {
- $proc->setParameter(null, 'repoPath', $repoPath . '/' . $childLoc);
- $childXmlDoc = new DOMDocument();
- $childXmlDoc->loadXML($childRepoXml);
- $html = $proc->transformToXML( $childXmlDoc );
- $outHTML = $outHTML . $html;
-}
-
-// Sort the content all together
-$sortXslContent = file_get_contents('sort.xsl');
-$sortXslDoc = new DOMDocument();
-$sortXslDoc->loadXML($sortXslContent);
-
-$outXmlDoc = new DOMDocument();
-$outXmlDoc->loadHTML($outHTML);
-
-$sproc = new XSLTProcessor();
-$sproc->importStylesheet($sortXslDoc);
-$finalHTML = $sproc->transformToXML ($outXmlDoc);
-echo "$finalHTML";
-
-echo "</table>";
-echo "<p>Note: entries marked with 'unzip' are intented to be unzipped in a normal IDE environment, to work as intended (even though the file to download is a jar file).</p>";
-
-//include $relativePath."/commonFiles/footerSUA.html";
-//include $relativePath."/commonFiles/footerWebmaster.html";
-require $relativePath."/commonFiles/DL.footer.php.html";
-
-?>
diff --git a/scripts/repo-index.xsl b/scripts/repo-index.xsl
deleted file mode 100644
index 63c2aa1..0000000
--- a/scripts/repo-index.xsl
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl" version="1.0">
-
- <xsl:output omit-xml-declaration="yes" indent="yes"/>
-
- <xsl:param name="repoPath"/>
-
- <xsl:template match="/">
-
- <xsl:for-each select="/repository/units/unit[provides/provided/@namespace = 'org.eclipse.equinox.p2.eclipse.type' and provides/provided/@name = 'bundle']">
- <xsl:sort select="@id"/>
- <xsl:if test="properties/property[@name='iplog.bug_id']">
- <xsl:variable name="id" select="@id"/>
- <xsl:variable name="email" select="properties/property[@name='iplog.contact.email']/@value"/>
- <!-- Get the version to the left of the 'v'
- Example: 1.2.3.v201611291555 gives 1.2.3. -->
- <xsl:variable name="vleft" select="substring-before(@version,'v')"/>
- <!-- Remove the last character -->
- <xsl:variable name="vfinal" select="substring($vleft,1,string-length($vleft)-1)"/>
-
-<tr valign="top">
- <td width="20%" >
- <a href="{$repoPath}/plugins/{@id}_{@version}.jar">
- <xsl:value-of select="@id" />
- </a>
- </td>
- <td width="5%">
- <!-- Only show source link if source bundle exists -->
- <xsl:if test="../unit[@id=concat($id,'.source')]">
- <a href="{$repoPath}/plugins/{@id}.source_{@version}.jar">
- (source)
- </a>
- </xsl:if>
- </td>
- <td width="5%">
- <!-- Hack for conditional expression -->
- <!-- Use the fact that 1/0 = Infinity and substring($foo, Infinity)
- returnes the empty string -->
- <xsl:value-of select="concat(
- substring($vfinal, 1 div boolean(contains(@version,'v'))),
- substring(@version, 1 div not(contains(@version,'v'))))" />
- </td>
- <td width="8%">
- <!-- clearlydefined -->
- <xsl:if test="contains(properties/property[@name='iplog.bug_id']/@value,'clearlydefined')">
- <a href="{properties/property[@name='iplog.bug_id']/@value}">
- ClearlyDefined
- </a>
- </xsl:if>
- <!-- ipzilla -->
- <xsl:if test="not(contains(properties/property[@name='iplog.bug_id']/@value,'clearlydefined'))">
- <a href="https://dev.eclipse.org/ipzilla/show_bug.cgi?id={properties/property[@name='iplog.bug_id']/@value}">
- <xsl:value-of select="properties/property[@name='iplog.bug_id']/@value" />
- </a>
- </xsl:if>
- </td>
- <td width="15%">
- <a href="mailto:{$email}">
- <xsl:value-of select="properties/property[@name='iplog.contact.name']/@value" />
- </a>
- </td>
-</tr>
- </xsl:if>
- </xsl:for-each>
-
- </xsl:template>
-
-</xsl:stylesheet>
diff --git a/scripts/sort.xsl b/scripts/sort.xsl
deleted file mode 100644
index 19eff19..0000000
--- a/scripts/sort.xsl
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl" version="1.0">
-
- <xsl:output omit-xml-declaration="yes" indent="yes"/>
-
- <xsl:template match="@*|node()">
- <xsl:copy><xsl:apply-templates select="@*|node()" /></xsl:copy>
- </xsl:template>
-
- <xsl:template match="/">
- <xsl:copy>
- <xsl:apply-templates select="//tr">
- <!-- The first cell in a row contains the Bundle-SymblicName -->
- <xsl:sort select="td[1]/a/text()"/>
- <!-- The third cell in a row contains the Bundle-Version -->
- <xsl:sort select="td[3]/text()"/>
- </xsl:apply-templates>
- </xsl:copy>
- </xsl:template>
-
-</xsl:stylesheet>

Back to the top