Subversion Repositories Projects

Rev

Rev 561 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#! /usr/bin/bash

HOME=$(pwd)
DIST=$HOME/dist
TMP=$DIST/tmp

echo Python Code...
mkdir $DIST/VibrationTest -p
cd $DIST/VibrationTest
cp $HOME/VibrationTest/*.py  ./

echo Compiled Python Code...
mkdir $TMP -p
cd $TMP
rm -rf

cp $HOME/VibrationTest/*.py  ./
echo  "from distutils.core import setup" > ./setup.py
echo  "import py2exe" >> ./setup.py
echo  "setup(console=['VibrationTest.py'])" >> ./setup.py

python setup.py py2exe > /dev/null

mkdir $DIST/VibrationTestExe -p
cd $DIST/VibrationTestExe
cp $TMP/dist/* ./ -a

echo Cleanup...
rm $TMP -rf

echo Zipping...
cd $DIST
atool -a VibrationTest_0_0.zip VibrationTest > /dev/null
atool -a VibrationTestExe_0_0.zip VibrationTestExe > /dev/null