Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
559 | FredericG | 1 | #! /usr/bin/bash |
2 | |||
561 | FredericG | 3 | |
4 | VERSION=$(cat CurrVersion.txt) |
||
5 | echo "Vesrion = "$VERSION |
||
6 | |||
559 | FredericG | 7 | HOME=$(pwd) |
8 | DIST=$HOME/dist |
||
9 | TMP=$DIST/tmp |
||
561 | FredericG | 10 | HEXFILE=$HOME/Executables/FlightCtrl/VibrationTest-FC.hex |
559 | FredericG | 11 | |
12 | echo Python Code... |
||
13 | mkdir $DIST/VibrationTest -p |
||
14 | cd $DIST/VibrationTest |
||
15 | cp $HOME/VibrationTest/*.py ./ |
||
561 | FredericG | 16 | cp $HEXFILE ./ |
559 | FredericG | 17 | |
18 | echo Compiled Python Code... |
||
19 | mkdir $TMP -p |
||
20 | cd $TMP |
||
21 | rm -rf |
||
22 | |||
23 | cp $HOME/VibrationTest/*.py ./ |
||
24 | echo "from distutils.core import setup" > ./setup.py |
||
25 | echo "import py2exe" >> ./setup.py |
||
26 | echo "setup(console=['VibrationTest.py'])" >> ./setup.py |
||
27 | |||
28 | python setup.py py2exe > /dev/null |
||
29 | |||
30 | mkdir $DIST/VibrationTestExe -p |
||
31 | cd $DIST/VibrationTestExe |
||
32 | cp $TMP/dist/* ./ -a |
||
33 | |||
561 | FredericG | 34 | cp $HEXFILE ./ |
35 | |||
559 | FredericG | 36 | echo Cleanup... |
37 | rm $TMP -rf |
||
38 | |||
39 | echo Zipping... |
||
40 | cd $DIST |
||
561 | FredericG | 41 | atool -a VibrationTest_${VERSION}.zip VibrationTest > /dev/null |
42 | atool -a VibrationTestExe_${VERSION}.zip VibrationTestExe > /dev/null |
||
559 | FredericG | 43 | |
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||
51 |