~ubuntu-branches/ubuntu/quantal/kdepimlibs/quantal-proposed

« back to all changes in this revision

Viewing changes to syndication/tests/fetchFeeds.rb

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-09-06 22:45:39 UTC
  • Revision ID: james.westby@ubuntu.com-20060906224539-fiq8t03qdbqu7z3i
Tags: upstream-3.80.1
ImportĀ upstreamĀ versionĀ 3.80.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
def escapeURL(url)
 
2
    url2 = url.dup
 
3
    url2.gsub!('?', '_')
 
4
    url2.gsub!(':', '_')
 
5
    url2.gsub!('/', '_')
 
6
    url2.gsub!('=', '_')
 
7
    return url2.strip
 
8
end
 
9
 
 
10
lines = STDIN.readlines
 
11
 
 
12
lines.each do |i|
 
13
    system("wget \"#{i.strip}\" -O \"#{escapeURL(i)}\"")
 
14
end