packages: php-packagexml2cl/php-packagexml2cl.spec, php-packagexml2cl/xml2c...
glen
glen at pld-linux.org
Sat Aug 21 10:10:24 CEST 2010
Author: glen Date: Sat Aug 21 08:10:24 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- wordwrap notes
---- Files affected:
packages/php-packagexml2cl:
php-packagexml2cl.spec (1.3 -> 1.4) , xml2changelog (1.3 -> 1.4)
---- Diffs:
================================================================
Index: packages/php-packagexml2cl/php-packagexml2cl.spec
diff -u packages/php-packagexml2cl/php-packagexml2cl.spec:1.3 packages/php-packagexml2cl/php-packagexml2cl.spec:1.4
--- packages/php-packagexml2cl/php-packagexml2cl.spec:1.3 Thu Mar 25 11:24:42 2010
+++ packages/php-packagexml2cl/php-packagexml2cl.spec Sat Aug 21 10:10:18 2010
@@ -5,7 +5,7 @@
Summary: Program to convert PEAR package.xml to ChangeLog format
Name: php-%{pkgname}
Version: 0.1
-Release: 1
+Release: 2
License: GPL v2
Group: Development/Languages/PHP
Source0: xml2changelog
@@ -39,6 +39,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2010/08/21 08:10:18 glen
+- wordwrap notes
+
Revision 1.3 2010/03/25 10:24:42 glen
- rel 1
================================================================
Index: packages/php-packagexml2cl/xml2changelog
diff -u packages/php-packagexml2cl/xml2changelog:1.3 packages/php-packagexml2cl/xml2changelog:1.4
--- packages/php-packagexml2cl/xml2changelog:1.3 Thu Mar 25 11:24:22 2010
+++ packages/php-packagexml2cl/xml2changelog Sat Aug 21 10:10:18 2010
@@ -16,11 +16,15 @@
fwrite(STDERR, print_r($xml, 1));
}
+function wrap($s) {
+ return wordwrap($s, 78);
+}
+
if ($xml['version'] >= '2') { // Package.xml V 2.0
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);
+ $xml->date, wrap($xml->notes));
$new = $xml->version->release;
if (!empty($xml->changelog->release)) {
@@ -30,16 +34,16 @@
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);
+ $rel->date, wrap($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);
+ $xml->release->version, $xml->release->state, $xml->release->date, wrap($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);
+ $rel->version, $rel->state, $rel->date, wrap($rel->notes));
}
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-packagexml2cl/php-packagexml2cl.spec?r1=1.3&r2=1.4&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-packagexml2cl/xml2changelog?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list