Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/clean.py
diff options
context:
space:
mode:
authorChris Porter <slug@quakenet.org>2009-02-02 02:29:39 (GMT)
committer Chris Porter <slug@quakenet.org>2009-02-02 02:29:39 (GMT)
commitca1cc89b2bbd3b4ef17dc98f28a8ede05d75334c (patch)
tree1fd720fe0d820300c054377c2f5397c597739333 /clean.py
parent63f8a99b2c6779d0ea2a67b083d8ef8f00133a8b (diff)
Produce compiled files based on hg id.
Diffstat (limited to 'clean.py')
-rw-r--r--clean.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/clean.py b/clean.py
index c6f30a2..d371bd7 100644
--- a/clean.py
+++ b/clean.py
@@ -1,12 +1,15 @@
#!/usr/bin/env python
-import bin.pages as pages, os, bin.cleanpyc as cleanpyc
+import bin.pages as pages, os, bin.cleanpyc as cleanpyc, glob
from bin.cleanpyc import tryunlink
for x in pages.UIs:
+ for y in glob.glob(os.path.join("static", "js", "%s-*.js" % x)):
+ tryunlink(y)
+ for y in glob.glob(os.path.join("static", "css", "%s-*.js" % x)):
+ tryunlink(y)
tryunlink("static", "%s.html" % x)
tryunlink("static", "%sdebug.html" % x)
- tryunlink("static", "js", "%s.js" % x)
if __name__ == "__main__":
tryunlink("static", "js", "qwebirc.js")