summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Frysiak2013-07-22 14:24:18 (GMT)
committerArtur Frysiak2013-07-22 14:24:18 (GMT)
commitd2c8d1b02d0031106e436cc1f12922f18d22f010 (patch)
tree286c71183bf2af17b05c88dcec6b14df7757a7ae
parent04d1137c9d2f1ed5ddfeb94d1ca4bad60a735c32 (diff)
downloadpldnotify-d2c8d1b02d0031106e436cc1f12922f18d22f010.zip
pldnotify-d2c8d1b02d0031106e436cc1f12922f18d22f010.tar.gz
taskwarrior hack
-rwxr-xr-xpldnotify.awk5
1 files changed, 5 insertions, 0 deletions
diff --git a/pldnotify.awk b/pldnotify.awk
index 762a743..30f9786 100755
--- a/pldnotify.awk
+++ b/pldnotify.awk
@@ -319,6 +319,11 @@ function get_links(url,filename, errno,link,oneline,retval,odp,wholeodp,lowero
d("hackage haskell tarball url, mungled url to: " url)
}
+ if (url ~/^http:\/\/www.taskwarrior.org\/download\//) {
+ url = "http://taskwarrior.org/projects/taskwarrior/wiki/Download"
+ d("taskwarrior tarball url, mungled url to: " url)
+ }
+
d("Retrieving: " url)
user_agent = "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2) Gecko/20100129 PLD/3.0 (Th) Iceweasel/3.6"
cmd = "wget -t 2 -T 45 --user-agent \"" user_agent "\" -nv -O - \"" url "\" --passive-ftp --no-check-certificate > " tmpfile " 2> " tmpfileerr