summaryrefslogtreecommitdiff
path: root/contrib/angstrom/rss2.php
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2008-02-09 09:35:06 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2008-02-09 09:35:06 +0000
commit570e63a2f80ccff168d0ab9fd23dc7ed7aa411e3 (patch)
treef264ae77e3ac776786a82d1ef43fba3ff0a903b4 /contrib/angstrom/rss2.php
parentf9bddb5b33d01ef9528acd2185396f8f61711913 (diff)
contrib/angstrom/rss*.php: Drop old non-optimal version, rename rss2 to rss.
* Per RFC on the list.
Diffstat (limited to 'contrib/angstrom/rss2.php')
-rw-r--r--contrib/angstrom/rss2.php63
1 files changed, 0 insertions, 63 deletions
diff --git a/contrib/angstrom/rss2.php b/contrib/angstrom/rss2.php
deleted file mode 100644
index 2e1f49c4cc..0000000000
--- a/contrib/angstrom/rss2.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-/*
- * This generator expect only log from autobuilder in simple format:
- * TIME_OF_BUILD BUILD_TARGET BUILD_MODE MACHINE
- *
- * where TIME_OF_BUILD is epoch
- *
- * All what it does is parsing log and output it in reverse order (new builds
- * first) in RSS 2.0 format.
- *
- * (C) 2007 Marcin Juszkiewicz
- *
- * License: MIT
- *
- */
-
-$build_link_base = 'http://www.angstrom-distribution.org/unstable/autobuild/';
-
-$builder_log_date = file('autobuilder.log');
-
-if(empty($builder_log_date))
- die("No logs\n");
-
-$builder_log_date = array_reverse($builder_log_date);
-
-$rss_xml = new xmlWriter();
-
-if(!$rss_xml)
- die("Unable to create XML Writer\n");
-
-$rss_xml->openMemory();
-
-$rss_xml->startDocument('1.0','utf-8');
-$rss_xml->startElement('rss');
-$rss_xml->writeAttribute('version', '2.0');
-
-$rss_xml->startElement('channel');
-
-$rss_xml->writeElement('title', 'Ångström autobuilder updates');
-$rss_xml->writeElement('link', $build_link_base);
-$rss_xml->writeElement('description', 'Ångström autobuilder updates list');
-
-foreach($builder_log_date as $build)
-{
- $build = str_replace("\n", "", $build);
- $data = explode(' ', $build);
-
- $rss_xml->startElement('item');
- $rss_xml->writeElement('title', "{$data[1]} ({$data[2]}) built for {$data[3]} (" . date('c', $data[0]) . ")");
- $rss_xml->writeElement('link', "{$build_link_base}{$data[3]}/");
- $rss_xml->writeElement('pubDate', date('r', $data[0]));
-
- $rss_xml->endElement();
-}
-
-$rss_xml->endElement();
-$rss_xml->endElement();
-
-echo $rss_xml->outputMemory(true);
-
-echo "\n";
-?>