[Dh-make-php-commits] r317 - trunk
steinm at alioth.debian.org
steinm at alioth.debian.org
Fri May 30 19:27:00 UTC 2008
Author: steinm
Date: 2008-05-30 19:26:59 +0000 (Fri, 30 May 2008)
New Revision: 317
Modified:
trunk/phppkginfo
Log:
- output better usage info when called with wrong option
- can now handle multiple developers in package.xml (version 2)
Modified: trunk/phppkginfo
===================================================================
--- trunk/phppkginfo 2008-05-20 14:09:50 UTC (rev 316)
+++ trunk/phppkginfo 2008-05-30 19:26:59 UTC (rev 317)
@@ -7,8 +7,17 @@
echo "Usage: ".$_SERVER["argv"][0]." dir <command>\n";
echo " dir - Directory containing package.xml file\n";
echo "\ncommands:\n";
- echo " version - Return version of package\n";
- echo " maintainers - Return comma separated list of maintainers\n";
+ echo " version - Version of package\n";
+ echo " maintainers - Comma separated list of maintainers\n";
+ echo " summary - Short summary of package\n"
+ echo " description ¯ Long description of package\n"
+ echo " packagerversion - Version of packager\n"
+ echo " package - Name of package\n"
+ echo " release_license - License of released version\n"
+ echo " license - License of package\n"
+ echo " date - Date of release\n"
+ echo " changelog - Full changelog of package\n"
+ echo " all - print_r() of complete package file\n"
}
if($_SERVER["argc"] < 3) {
@@ -107,8 +116,11 @@
$tmp[] = $maintainer["name"];
}
if(isset($pf->_packageInfo["developer"])) {
- foreach($pf->_packageInfo["developer"] as $maintainer)
- $tmp[] = $maintainer["name"];
+ if(isset($pf->_packageInfo["developer"]["name"]))
+ $tmp[] = $pf->_packageInfo["developer"]["name"];
+ else
+ foreach($pf->_packageInfo["developer"] as $maintainer)
+ $tmp[] = $maintainer["name"];
}
echo implode(", ", $tmp);
break;
More information about the Dh-make-php-commits
mailing list