]>
Commit | Line | Data |
---|---|---|
882632ce | 1 | #!/bin/sh |
605c5c3c | 2 | channels=" |
aec1d9a8 | 3 | components.ez.no |
a9af1509 | 4 | pear.docblox-project.org |
605c5c3c | 5 | pear.firephp.org |
2f9b87ec | 6 | pear.horde.org |
d92a3b44 | 7 | pear.michelf.com |
7a1a8238 | 8 | pear.netpirates.net |
f84845e8 | 9 | pear.pdepend.org |
605c5c3c ER |
10 | pear.phing.info |
11 | pear.phpdb.org | |
f84845e8 | 12 | pear.phpmd.org |
605c5c3c | 13 | pear.phpunit.de |
4c5242d9 | 14 | pear.propelorm.org |
605c5c3c | 15 | pear.roundcube.net |
aec1d9a8 | 16 | pear.symfony-project.com |
9eaeb4a8 | 17 | pear.symfony.com |
73b1fcbc | 18 | pear.twig-project.org |
aec1d9a8 | 19 | phpseclib.sourceforge.net |
d1682f5e | 20 | saucelabs.github.com/pear |
3ba22036 | 21 | zustellzentrum.cweiske.de |
882632ce | 22 | " |
7a1a8238 | 23 | for channel in ${@:-$channels}; do |
605c5c3c | 24 | url=http://$channel/channel.xml |
150f2fb5 | 25 | wget -q --timeout=10 --tries=1 -O tmp.xml $url || continue |
882632ce | 26 | alias=$(sed -nre 's,.*<suggestedalias>(.+)</suggestedalias>.*$,\1,p' tmp.xml) |
5def8ed5 | 27 | sed -i -e 's,\r$,,g; s,\r,\n,g' tmp.xml |
882632ce ER |
28 | mv -f tmp.xml channel-$alias.xml |
29 | done | |
30 | ||
31 | rm -f tmp.xml |