comparison bin/url @ 1813:d5b2eb52c760

<oerjan> cat url >bin/url
author HackBot
date Fri, 25 Jan 2013 20:38:02 +0000
parents e037173e0012
children 28b402caecb0
comparison
equal deleted inserted replaced
1812:2f5b38bf4710 1813:d5b2eb52c760
1 #!/bin/bash 1 #!/usr/bin/env python
2 if [ "$1" ] 2 import sys, urllib
3 then 3 arg = sys.argv(1)
4 echo 'http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/'"$1" 4 if arg == None: print "http://codu.org/projects/hackbot/fshg/"
5 else 5 else: print urllib.quote(
6 echo 'http://codu.org/projects/hackbot/fshg/' 6 "http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/" . arg)
7 fi