From 882632cefa0b368c064e135f942ae5ecc0512a17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 1 Oct 2010 13:10:58 +0000 Subject: [PATCH] - script to update channels Changed files: update-channels.sh -> 1.1 --- update-channels.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 update-channels.sh diff --git a/update-channels.sh b/update-channels.sh new file mode 100644 index 0000000..effae04 --- /dev/null +++ b/update-channels.sh @@ -0,0 +1,17 @@ +#!/bin/sh +urls=" + http://pear.firephp.org/channel.xml + http://pear.phing.info/channel.xml + http://pear.phpdb.org/channel.xml + http://phpseclib.sourceforge.net/channel.xml + http://pear.phpunit.de/channel.xml + http://pear.symfony-project.com/channel.xml + http://pear.roundcube.net/channel.xml +" +for url in $urls; do + wget -q -O tmp.xml $url || continue + alias=$(sed -nre 's,.*(.+).*$,\1,p' tmp.xml) + mv -f tmp.xml channel-$alias.xml +done + +rm -f tmp.xml -- 2.44.0