#!/bin/sh # A build script to be run in a UNIX shell. # Run the obfuscator to generate obfuscated source code from ProjectX. python ../bobs/bobs/bobs.pyc 1.poi # Make .pyc byte-compiled files of ProjectX. python -m compileall obd python -m compileall obd/pkg python -m compileall obd/pkg/pkgx # Delete the previous byte-compiled-only release directory. rm -R pycs # Create the new byte-compiled only release directory, without .py files in it. mkdir pycs cp obd/*.pyc pycs cp -R obd/pkg pycs rm pycs/pkg/*.py rm pycs/pkg/*.egg-info rm pycs/pkg/pkgx/*.py