3 # Scan files from .channels dir ending with .reg extension for PEAR channel info
4 # Author: Elan Ruusamäe <glen@pld-linux.org>
10 $files = array_splice($argv, 1);
12 $files = explode(PHP_EOL, trim(file_get_contents('php://stdin')));
15 foreach ($files as $file) {
16 if (strstr($file, '.channels') && substr($file, -4) == '.reg') {
17 $reg = unserialize(file_get_contents($file));
18 printf("Provides: php-channel(%s)\n", $reg['name']);