]>
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 |
f84845e8 | 8 | pear.pdepend.org |
605c5c3c ER |
9 | pear.phing.info |
10 | pear.phpdb.org | |
f84845e8 | 11 | pear.phpmd.org |
605c5c3c | 12 | pear.phpunit.de |
4c5242d9 | 13 | pear.propelorm.org |
605c5c3c | 14 | pear.roundcube.net |
aec1d9a8 ER |
15 | pear.symfony-project.com |
16 | phpseclib.sourceforge.net | |
882632ce | 17 | " |
605c5c3c ER |
18 | for channel in $channels; do |
19 | url=http://$channel/channel.xml | |
150f2fb5 | 20 | wget -q --timeout=10 --tries=1 -O tmp.xml $url || continue |
882632ce | 21 | alias=$(sed -nre 's,.*<suggestedalias>(.+)</suggestedalias>.*$,\1,p' tmp.xml) |
5def8ed5 | 22 | sed -i -e 's,\r$,,g; s,\r,\n,g' tmp.xml |
882632ce ER |
23 | mv -f tmp.xml channel-$alias.xml |
24 | done | |
25 | ||
26 | rm -f tmp.xml |