summaryrefslogtreecommitdiffstats
path: root/Mac/BuildScript/scripts/postflight.framework
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/BuildScript/scripts/postflight.framework')
-rwxr-xr-xMac/BuildScript/scripts/postflight.framework33
1 files changed, 33 insertions, 0 deletions
diff --git a/Mac/BuildScript/scripts/postflight.framework b/Mac/BuildScript/scripts/postflight.framework
new file mode 100755
index 0000000..532e745
--- /dev/null
+++ b/Mac/BuildScript/scripts/postflight.framework
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# Recompile the .py files.
+#
+
+PYVER="@PYVER@"
+FWK="/Library/Frameworks/Python.framework/Versions/@PYVER@/"
+
+"${FWK}/bin/python" -Wi -tt \
+ "${FWK}/lib/python${PYVER}/compileall.py" \
+ -x badsyntax -x site-packages \
+ "${FWK}/lib/python${PYVER}"
+
+"${FWK}/bin/python" -Wi -tt -O \
+ "${FWK}/lib/python${PYVER}/compileall.py" \
+ -x badsyntax -x site-packages \
+ "${FWK}/lib/python${PYVER}"
+
+"${FWK}/bin/python" -Wi -tt \
+ "${FWK}/lib/python${PYVER}/compileall.py" \
+ -x badsyntax -x site-packages \
+ "${FWK}/Mac/Tools"
+
+"${FWK}/bin/python" -Wi -tt -O \
+ "${FWK}/lib/python${PYVER}/compileall.py" \
+ -x badsyntax -x site-packages \
+ "${FWK}/Mac/Tools"
+
+
+chown -R admin "${FWK}"
+chmod -R g+w "${FWK}"
+
+exit 0