commit 5def8ed5f351d1b1e46d90d49f49871a71043193
Author: Elan Ruusamäe <[email protected]>
Date:   Wed Aug 29 01:00:51 2012 +0300

    avoid dos eol and weird eol

 update-channels.sh | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/update-channels.sh b/update-channels.sh
index 0c33965..90712a9 100755
--- a/update-channels.sh
+++ b/update-channels.sh
@@ -19,6 +19,7 @@ for channel in $channels; do
        url=http://$channel/channel.xml
        wget -q --timeout=10 --tries=1 -O tmp.xml $url || continue
        alias=$(sed -nre 's,.*<suggestedalias>(.+)</suggestedalias>.*$,\1,p' 
tmp.xml)
+       sed -i -e 's,\r$,,g; s,\r,\n,g' tmp.xml
        mv -f tmp.xml channel-$alias.xml
 done
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pear.git/commitdiff/c809b46bc22e8a694323b5f33f772e0adab183ff

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to