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 aac0c23865f5f22ebd1127d76a110418ba263aa2..e258636eed6cfce43ea4b630fd134a62f1a9acf4 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")