Changeset - 4473d00be6e3
[Not reviewed]
0 0 1
Bradley Kuhn (bkuhn) - 11 years ago 2010-10-03 15:25:00
bkuhn@ebb.org
Added script to compile everything.
1 file changed with 17 insertions and 0 deletions:
0 comments (0 inline, 0 general)
compile-all.py
Show inline comments
 
new file 100644
 
#!/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 {} \;")
0 comments (0 inline, 0 general)