From 6aea19e48b2a95be98037c94bbb4741a6edf3d6f Mon Sep 17 00:00:00 2001 From: Christoph Korn Date: Sat, 12 Oct 2013 00:03:29 +0200 Subject: [PATCH] codeslayer watcher 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. --- codeslayer.py | 11 +++++++++++ update.sh | 1 + 2 files changed, 12 insertions(+) create mode 100644 codeslayer.py diff --git a/codeslayer.py b/codeslayer.py new file mode 100644 index 0000000..adc4901 --- /dev/null +++ b/codeslayer.py @@ -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('(?:.*)(?:.*)') +for x in h: + m=finder.match(x) + if m: + v=m.group("version") + print("%s"%(v,v)) diff --git a/update.sh b/update.sh index 214345c..9fb5289 100644 --- a/update.sh +++ b/update.sh @@ -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