diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-09-20 20:15:41 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-09-20 20:15:41 +0200 |
commit | a149d566fca224e503b7676337486ec2670e6cca (patch) | |
tree | 0ebcfd935a67ea204f8c576b707c981a539d035a | |
parent | 40b45cbca6b2a5690ca4ff791d2380180159b86f (diff) |
List required PHP extensions in 'require'
-rwxr-xr-x | bin/package2composer.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/package2composer.sh b/bin/package2composer.sh index 66d77f623..aa9dffb50 100755 --- a/bin/package2composer.sh +++ b/bin/package2composer.sh @@ -73,6 +73,12 @@ if ($devs = $package->developer) { } } +if ($package->dependencies->required->extension) { + foreach ($package->dependencies->required->extension as $ext) { + $data['require']['ext-' . strval($ext->name)] = '*'; + } +} + // remove empty values $data = array_filter($data); |