diff options
author | Chris Porter <slug@quakenet.org> | 2009-02-02 02:29:39 (GMT) |
---|---|---|
committer | Chris Porter <slug@quakenet.org> | 2009-02-02 02:29:39 (GMT) |
commit | ca1cc89b2bbd3b4ef17dc98f28a8ede05d75334c (patch) | |
tree | 1fd720fe0d820300c054377c2f5397c597739333 /clean.py | |
parent | 63f8a99b2c6779d0ea2a67b083d8ef8f00133a8b (diff) |
Produce compiled files based on hg id.
Diffstat (limited to 'clean.py')
-rw-r--r-- | clean.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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") |