diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-12-19 14:22:10 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-12-19 14:22:10 +0100 |
commit | 0b17e8bd93a7f81ebc3e21fdb27f1b7fb5fdc2b6 (patch) | |
tree | d6bb404dc84ce04e14bef916d993980c073b449e /xml2changelog | |
parent | 6b268a29f1ba5d91803814e05eef9aa252a32b18 (diff) |
php-pecl-pdflib: 3.0.2 (stable)
Diffstat (limited to 'xml2changelog')
-rw-r--r-- | xml2changelog | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/xml2changelog b/xml2changelog deleted file mode 100644 index 3a31be6..0000000 --- a/xml2changelog +++ /dev/null @@ -1,43 +0,0 @@ -<?php -$prog=array_shift($_SERVER['argv']); -if ($_SERVER['argc']<2) die ("usage : " . $prog . " path_to_package.xml [ --debug ]\n"); -$file=array_shift($_SERVER['argv']); - -($xml=simplexml_load_file($file)) || die ($file . " not found !\n"); -if (in_array("--debug", $_SERVER['argv'])) print_r($xml); - -if ($xml['version'] >= "2"){ // Package.xml V 2.0 - $new = ""; - if (strlen(trim($xml->notes))>1) { // Ignore too short descr. - printf("*** Version %s (%s) - API %s (%s) - %s\n\n%s\n\n", - $xml->version->release, $xml->stability->release, - $xml->version->api, $xml->stability->api, - $xml->date, $xml->notes); - $new=$xml->version->release; - } - - if (isset($xml->changelog->release) && count($xml->changelog->release)) { - $tab = array(); - foreach($xml->changelog->release as $rel) { - $old=$rel->version->release; - if ("$old" != "$new") { - $tab[''.$rel->date] = $rel; - } - } - krsort($tab); - foreach($tab as $rel) { - printf("*** Version %s (%s) - API %s (%s) - %s\n\n%s\n\n", - $rel->version->release, $rel->stability->release, - $rel->version->api, $rel->stability->api, - $rel->date, $rel->notes); - } - } -} else { // Package.xml V 1.0 - printf("* Version %s (%s) - %s\n\n%s\n\n", - $xml->release->version, $xml->release->state, $xml->release->date, $xml->release->notes); - - foreach($xml->changelog->release as $rel) - printf("* Version %s (%s) - %s\n\n%s\n\n", - $rel->version, $rel->state, $rel->date, $rel->notes); -} -?> |