7 |
if (in_array("--debug", $_SERVER['argv'])) print_r($xml); |
if (in_array("--debug", $_SERVER['argv'])) print_r($xml); |
8 |
|
|
9 |
if ($xml['version'] >= "2"){ // Package.xml V 2.0 |
if ($xml['version'] >= "2"){ // Package.xml V 2.0 |
10 |
printf("* Version %s (%s) - API %s (%s) - %s\n\n%s\n\n", |
$new = ""; |
11 |
$xml->version->release, $xml->stability->release, |
if (strlen(trim($xml->notes))>1) { // Ignore too short descr. |
12 |
$xml->version->api, $xml->stability->api, |
printf("++*** Version %s (%s) - API %s (%s) - %s\n\n%s\n\n", |
13 |
$xml->date, $xml->notes); |
$xml->version->release, $xml->stability->release, |
14 |
|
$xml->version->api, $xml->stability->api, |
15 |
|
$xml->date, $xml->notes); |
16 |
|
$new=$xml->version->release; |
17 |
|
} |
18 |
|
|
19 |
if (is_array($xml->changelog->release)) foreach($xml->changelog->release as $rel) |
if (isset($xml->changelog->release) && count($xml->changelog->release)) { |
20 |
printf("* Version %s (%s) - API %s (%s) - %s\n\n%s\n\n", |
$tab = array(); |
21 |
$rel->version->release, $rel->stability->release, |
foreach($xml->changelog->release as $rel) { |
22 |
$rel->version->api, $rel->stability->api, |
$old=$rel->version->release; |
23 |
$rel->date, $rel->notes); |
if ("$old" != "$new") { |
24 |
|
$tab[''.$rel->date] = $rel; |
25 |
|
} |
26 |
|
} |
27 |
|
krsort($tab); |
28 |
|
foreach($tab as $rel) { |
29 |
|
printf("*** Version %s (%s) - API %s (%s) - %s\n\n%s\n\n", |
30 |
|
$rel->version->release, $rel->stability->release, |
31 |
|
$rel->version->api, $rel->stability->api, |
32 |
|
$rel->date, $rel->notes); |
33 |
|
} |
34 |
|
} |
35 |
} else { // Package.xml V 1.0 |
} else { // Package.xml V 1.0 |
36 |
printf("* Version %s (%s) - %s\n\n%s\n\n", |
printf("* Version %s (%s) - %s\n\n%s\n\n", |
37 |
$xml->release->version, $xml->release->state, $xml->release->date, $xml->release->notes); |
$xml->release->version, $xml->release->state, $xml->release->date, $xml->release->notes); |