Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 619 → Rev 620

/VibrationTest/trunk/buildDist.sh
7,8 → 7,14
HOME=$(pwd)
DIST=$HOME/dist
TMP=$DIST/tmp
LOG=$HOME/build.log
HEXFILE=$HOME/Executables/FlightCtrl/Flight-Ctrl_MEGA644p_VibrationTest.hex
 
date > $LOG
 
echo Remove dist...
rm $DIST -rf
 
echo Python Code...
mkdir $DIST/VibrationTest -p
cd $DIST/VibrationTest
15,7 → 21,7
cp $HOME/VibrationTest/*.py ./
cp $HEXFILE ./
 
echo Compiled Python Code...
echo Compiled Python Code... | tee -a $LOG
mkdir $TMP -p
cd $TMP
rm -rf
23,9 → 29,9
cp $HOME/VibrationTest/*.py ./
echo "from distutils.core import setup" > ./setup.py
echo "import py2exe" >> ./setup.py
echo "setup(console=['VibrationTest.py'])" >> ./setup.py
echo "setup(console=['VibrationTestGui.py'])" >> ./setup.py
 
python setup.py py2exe > /dev/null
python setup.py py2exe >> $LOG
 
mkdir $DIST/VibrationTestExe -p
cd $DIST/VibrationTestExe
36,10 → 42,10
echo Cleanup...
rm $TMP -rf
 
echo Zipping...
echo Zipping... | tee -a $LOG
cd $DIST
atool -a VibrationTest_${VERSION}.zip VibrationTest > /dev/null
atool -a VibrationTestExe_${VERSION}.zip VibrationTestExe > /dev/null
atool -a VibrationTest_${VERSION}.zip VibrationTest >> $LOG
atool -a VibrationTestExe_${VERSION}.zip VibrationTestExe >> $LOG