Skip to content

Commit

Permalink
codeslayer watcher
Browse files Browse the repository at this point in the history
Watch the repository for new tags. It seems tarballs are not
created for every tag.
The link will 404 but will point you to the correct site.
  • Loading branch information
Christoph Korn committed Oct 11, 2013
1 parent 7eb90f5 commit 6aea19e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions codeslayer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/python
import urllib2
import re
r=urllib2.urlopen("http://code.google.com/p/codeslayer/source/browse/")
h=r.read().split("\n")
finder=re.compile('(?:.*)<option value="(?P<version>.*)" >(?:.*)</option>(?:.*)')
for x in h:
m=finder.match(x)
if m:
v=m.group("version")
print("<a href='http://code.google.com/p/codeslayer/source/browse/%s'>%s</a>"%(v,v))
1 change: 1 addition & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ python legends.py > legends.html 2> legends.log
python the-powder-toy.py > the-powder-toy.html 2> the-powder-toy.log
python tide.py > tide.html 2> tide.log
python sandboxgamemaker.py > sandboxgamemaker.html 2> sandboxgamemaker.log
python codeslayer.py > codeslayer.html 2> codeslayer.log

0 comments on commit 6aea19e

Please sign in to comment.