Author: chammers
Date: Thu Oct 22 22:26:29 2009
New Revision: 828878
URL: http://svn.apache.org/viewvc?rev=828878&view=rev
Log:
* Try to be clever and extract version for pear package from pom.xml
* Replaced $notes by something more meaningful.
Modified:
incubator/log4php/trunk/package-config.php
Modified: incubator/log4php/trunk/package-config.php
URL:
http://svn.apache.org/viewvc/incubator/log4php/trunk/package-config.php?rev=828878&r1=828877&r2=828878&view=diff
==============================================================================
--- incubator/log4php/trunk/package-config.php (original)
+++ incubator/log4php/trunk/package-config.php Thu Oct 22 22:26:29 2009
@@ -16,12 +16,15 @@
* limitations under the License.
*/
+// parse pom.xml to get version in sync
+preg_match("/<version>(.+?)(-SNAPSHOT)?<\/version>/",
file_get_contents("../../pom.xml"), $pom_version);
+
$name = 'log4php';
$summary = 'log4Php is a PHP port of log4j framework';
-$version = '2.0.0';
+$version = $pom_version[1];
$versionBuild = 'b1';
$apiVersion = '2.0.0';
-$state = 'stable';
+$state = empty($pom_version[2]) ? 'stable' : 'snapshot';
$apiStability = 'stable';
$description = <<<EOT
@@ -30,10 +33,7 @@
and logging levels.
EOT;
-$notes = <<<EOT
-Changes since 0.9:
- -
-EOT;
+$notes = 'Please see CHANGELOG and changes.xml!';
$options = array(
'license' => 'Apache License 2.0',