From 4473d00be6e389d1c9170048a80da5a5be2488f2 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Sun, 3 Oct 2010 11:25:00 -0400 Subject: [PATCH] Added script to compile everything. --- compile-all.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 compile-all.py diff --git a/compile-all.py b/compile-all.py new file mode 100644 index 00000000..4924682b --- /dev/null +++ b/compile-all.py @@ -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 {} \;")