chiark / gitweb /
Improved CVS magic stuff - maybe it will build this time
authormatthew <matthew>
Sun, 3 Feb 2002 23:01:29 +0000 (23:01 +0000)
committermatthew <matthew>
Sun, 3 Feb 2002 23:01:29 +0000 (23:01 +0000)
acrobat-chiark-0.2.py

index aac0c23..e258636 100755 (executable)
@@ -50,8 +50,9 @@ class Acrobat(SingleServerIRCBot):
         self.channel = channel
         self.owner = owner
         # version control magic
-        acrorevision=$Revision$
-        acroversion=re.sub($Revision$]*\)$,\1)
+        acrorevision="$Revision$"
+        acrorev1=re.sub(Revision$\([^$]*\)$,\1,acrorevision)
+        acrorev2=re.sub($\(.*\),\1,acrorev1)
         # load the karma db
         try:
             f = open("karmadump", "r")