Mercurial > repo
changeset 4570:5a4571b62410
<oerjan> cp bin/{,raw-}url; sed -i \'s/raw-//\' bin/url
author | HackBot |
---|---|
date | Tue, 15 Apr 2014 12:14:08 +0000 |
parents | 63d71a52609b |
children | ddc7a3effa9a |
files | bin/raw-url bin/url |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/raw-url Tue Apr 15 12:14:08 2014 +0000 @@ -0,0 +1,7 @@ +#!/usr/bin/env python +import sys, urllib +if len(sys.argv) <= 1: + print "http://codu.org/projects/hackbot/fshg/" +else: + print ("http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/" + + urllib.quote(sys.argv[1]))
--- a/bin/url Tue Apr 15 11:46:12 2014 +0000 +++ b/bin/url Tue Apr 15 12:14:08 2014 +0000 @@ -3,5 +3,5 @@ if len(sys.argv) <= 1: print "http://codu.org/projects/hackbot/fshg/" else: - print ("http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/" + + print ("http://codu.org/projects/hackbot/fshg/index.cgi/file/tip/" + urllib.quote(sys.argv[1]))