Rev 626 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 626 | Rev 635 | ||
---|---|---|---|
1 | #! /usr/bin/bash |
1 | #! /usr/bin/bash |
2 | 2 | ||
3 | 3 | ||
4 | VERSION=$(cat CurrVersion.txt) |
4 | VERSION=$(cat CurrVersion.txt) |
5 | echo "Vesrion = "$VERSION |
5 | echo "Vesrion = "$VERSION |
6 | 6 | ||
7 | HOME=$(pwd) |
7 | HOME=$(pwd) |
8 | DIST=$HOME/dist |
8 | DIST=$HOME/dist |
9 | TMP=$DIST/tmp |
9 | TMP=$DIST/tmp |
10 | LOG=$HOME/build.log |
10 | LOG=$HOME/build.log |
11 | HEXFILE=$HOME/Executables/FlightCtrl/Flight-Ctrl_MEGA644p_VibrationTest.hex |
11 | HEXFILE=$HOME/Executables/FlightCtrl/Flight-Ctrl_MEGA644p_VibrationTest.hex |
12 | 12 | ||
13 | date > $LOG |
13 | date > $LOG |
14 | 14 | ||
15 | echo Remove dist... |
15 | echo Remove dist... |
16 | rm $DIST -rf |
16 | rm $DIST -rf |
17 | 17 | ||
18 | echo Python Code... |
18 | echo Python Code... |
19 | mkdir $DIST/VibrationTest -p |
19 | mkdir $DIST/VibrationTest -p |
20 | cd $DIST/VibrationTest |
20 | cd $DIST/VibrationTest |
21 | cp $HOME/VibrationTest/VibrationTestGui.py ./ |
21 | cp $HOME/VibrationTest/VibrationTestGui.py ./ |
22 | cp $HOME/VibrationTest/mkProto.py ./ |
22 | cp $HOME/VibrationTest/mkProto.py ./ |
23 | cp -a $HOME/VibrationTest/Resources ./ |
23 | cp -a $HOME/VibrationTest/Resources ./ |
24 | cp $HEXFILE ./ |
24 | cp $HEXFILE ./ |
- | 25 | mkdir ./Data |
|
25 | 26 | ||
26 | echo Compiled Python Code... | tee -a $LOG |
27 | echo Compiled Python Code... | tee -a $LOG |
27 | mkdir $TMP -p |
28 | mkdir $TMP -p |
28 | cd $TMP |
29 | cd $TMP |
29 | rm -rf |
30 | rm -rf |
30 | 31 | ||
31 | cp $HOME/VibrationTest/*.py ./ |
32 | cp $HOME/VibrationTest/*.py ./ |
32 | echo "from distutils.core import setup" > ./setup.py |
33 | echo "from distutils.core import setup" > ./setup.py |
33 | echo "import py2exe" >> ./setup.py |
34 | echo "import py2exe" >> ./setup.py |
34 | echo "setup(console=['VibrationTestGui.py'])" >> ./setup.py |
35 | echo "setup(console=['VibrationTestGui.py'])" >> ./setup.py |
35 | 36 | ||
36 | python setup.py py2exe >> $LOG |
37 | python setup.py py2exe >> $LOG |
37 | 38 | ||
38 | mkdir $DIST/VibrationTestExe -p |
39 | mkdir $DIST/VibrationTestExe -p |
39 | cd $DIST/VibrationTestExe |
40 | cd $DIST/VibrationTestExe |
40 | cp $TMP/dist/* ./ -a |
41 | cp $TMP/dist/* ./ -a |
41 | cp -a $HOME/VibrationTest/Resources ./ |
42 | cp -a $HOME/VibrationTest/Resources ./ |
- | 43 | mkdir ./Data |
|
42 | 44 | ||
43 | cp $HEXFILE ./ |
45 | cp $HEXFILE ./ |
44 | 46 | ||
45 | echo Cleanup... |
47 | echo Cleanup... |
46 | rm $TMP -rf |
48 | rm $TMP -rf |
47 | 49 | ||
48 | echo Zipping... | tee -a $LOG |
50 | echo Zipping... | tee -a $LOG |
49 | cd $DIST |
51 | cd $DIST |
50 | atool -a VibrationTest_${VERSION}.zip VibrationTest >> $LOG |
52 | atool -a VibrationTest_${VERSION}.zip VibrationTest >> $LOG |
51 | atool -a VibrationTestExe_${VERSION}.zip VibrationTestExe >> $LOG |
53 | atool -a VibrationTestExe_${VERSION}.zip VibrationTestExe >> $LOG |
52 | 54 | ||
53 | 55 | ||
54 | 56 | ||
55 | 57 | ||
56 | 58 | ||
57 | 59 | ||
58 | 60 | ||
59 | 61 | ||
60 | 62 | ||
61 | 63 |