Added script to compile everything.

This commit is contained in:
Bradley M. Kuhn 2010-10-03 11:25:00 -04:00
parent 3324cfe1fe
commit 4473d00be6

17
compile-all.py Normal file
View file

@ -0,0 +1,17 @@
#!/usr/bin/python
import compileall
import os
#compileall.compile_dir("www", force=1)
#
def compileDir(arg, directory, names):
compileall.compile_dir(directory, force=1)
os.path.walk("www", compileDir, "")
os.system("find www -type d -exec chmod gu+rx {} \;")
os.system("find www -type f -exec chmod gu+r {} \;")
os.system("find www -type d -exec chmod o+x {} \;")
os.system("find www -exec chgrp www-data {} \;")
os.system("find www -exec chmod go-w {} \;")