[packages/php-pear] avoid dos eol and weird eol

glen glen at pld-linux.org
Wed Aug 29 00:01:21 CEST 2012


commit 5def8ed5f351d1b1e46d90d49f49871a71043193
Author: Elan Ruusamäe <glen at delfi.ee>
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



More information about the pld-cvs-commit mailing list