2006-06-07 15:58:42 -03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Recompile the .py files.
|
|
|
|
#
|
|
|
|
|
|
|
|
PYVER="@PYVER@"
|
2006-06-25 18:15:58 -03:00
|
|
|
FWK="/Library/Frameworks/Python.framework/Versions/@PYVER@"
|
2006-06-07 15:58:42 -03:00
|
|
|
|
2009-09-20 08:19:00 -03:00
|
|
|
"${FWK}/bin/python@PYVER@" -Wi -tt \
|
2006-06-07 15:58:42 -03:00
|
|
|
"${FWK}/lib/python${PYVER}/compileall.py" \
|
|
|
|
-x badsyntax -x site-packages \
|
|
|
|
"${FWK}/lib/python${PYVER}"
|
|
|
|
|
2009-09-20 08:19:00 -03:00
|
|
|
"${FWK}/bin/python@PYVER@" -Wi -tt -O \
|
2006-06-07 15:58:42 -03:00
|
|
|
"${FWK}/lib/python${PYVER}/compileall.py" \
|
|
|
|
-x badsyntax -x site-packages \
|
|
|
|
"${FWK}/lib/python${PYVER}"
|
|
|
|
|
2009-09-20 08:19:00 -03:00
|
|
|
chgrp -R admin "${FWK}"
|
2006-06-07 15:58:42 -03:00
|
|
|
chmod -R g+w "${FWK}"
|
|
|
|
|
|
|
|
exit 0
|