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", |
printf("*** Version %s (%s) - API %s (%s) - %s\n\n%s\n\n", |
11 |
$xml->version->release, $xml->stability->release, |
$xml->version->release, $xml->stability->release, |
12 |
$xml->version->api, $xml->stability->api, |
$xml->version->api, $xml->stability->api, |
13 |
$xml->date, $xml->notes); |
$xml->date, $xml->notes); |
14 |
|
$new=$xml->version->release; |
15 |
|
|
16 |
if (is_array($xml->changelog->release)) foreach($xml->changelog->release as $rel) |
if (isset($xml->changelog->release) && count($xml->changelog->release)) |
17 |
printf("* Version %s (%s) - API %s (%s) - %s\n\n%s\n\n", |
foreach($xml->changelog->release as $rel) { |
18 |
|
$old=$rel->version->release; |
19 |
|
if ("$old" != "$new") { |
20 |
|
printf("*** Version %s (%s) - API %s (%s) - %s\n\n%s\n\n", |
21 |
$rel->version->release, $rel->stability->release, |
$rel->version->release, $rel->stability->release, |
22 |
$rel->version->api, $rel->stability->api, |
$rel->version->api, $rel->stability->api, |
23 |
$rel->date, $rel->notes); |
$rel->date, $rel->notes); |
24 |
|
} |
25 |
|
} |
26 |
} else { // Package.xml V 1.0 |
} else { // Package.xml V 1.0 |
27 |
printf("* Version %s (%s) - %s\n\n%s\n\n", |
printf("* Version %s (%s) - %s\n\n%s\n\n", |
28 |
$xml->release->version, $xml->release->state, $xml->release->date, $xml->release->notes); |
$xml->release->version, $xml->release->state, $xml->release->date, $xml->release->notes); |