Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 560 → Rev 561

/VibrationTest/trunk/buildDist.sh
1,13 → 1,19
#! /usr/bin/bash
 
 
VERSION=$(cat CurrVersion.txt)
echo "Vesrion = "$VERSION
 
HOME=$(pwd)
DIST=$HOME/dist
TMP=$DIST/tmp
HEXFILE=$HOME/Executables/FlightCtrl/VibrationTest-FC.hex
 
echo Python Code...
mkdir $DIST/VibrationTest -p
cd $DIST/VibrationTest
cp $HOME/VibrationTest/*.py ./
cp $HEXFILE ./
 
echo Compiled Python Code...
mkdir $TMP -p
25,13 → 31,15
cd $DIST/VibrationTestExe
cp $TMP/dist/* ./ -a
 
cp $HEXFILE ./
 
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
atool -a VibrationTest_${VERSION}.zip VibrationTest > /dev/null
atool -a VibrationTestExe_${VERSION}.zip VibrationTestExe > /dev/null