Subversion Repositories Projects

Rev

Rev 571 | Rev 626 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 571 Rev 620
Line 5... Line 5...
5
echo "Vesrion = "$VERSION
5
echo "Vesrion = "$VERSION
Line 6... Line 6...
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
Line -... Line 11...
-
 
11
HEXFILE=$HOME/Executables/FlightCtrl/Flight-Ctrl_MEGA644p_VibrationTest.hex
-
 
12
 
-
 
13
date > $LOG
-
 
14
 
-
 
15
echo Remove dist...
10
HEXFILE=$HOME/Executables/FlightCtrl/Flight-Ctrl_MEGA644p_VibrationTest.hex
16
rm $DIST -rf
11
 
17
 
12
echo Python Code...
18
echo Python Code...
13
mkdir $DIST/VibrationTest -p
19
mkdir $DIST/VibrationTest -p
14
cd $DIST/VibrationTest
20
cd $DIST/VibrationTest
Line 15... Line 21...
15
cp $HOME/VibrationTest/*.py  ./
21
cp $HOME/VibrationTest/*.py  ./
16
cp $HEXFILE ./
22
cp $HEXFILE ./
17
 
23
 
18
echo Compiled Python Code...
24
echo Compiled Python Code... | tee -a $LOG
Line 19... Line 25...
19
mkdir $TMP -p
25
mkdir $TMP -p
20
cd $TMP
26
cd $TMP
21
rm -rf
27
rm -rf
22
 
28
 
Line 23... Line 29...
23
cp $HOME/VibrationTest/*.py  ./
29
cp $HOME/VibrationTest/*.py  ./
Line 24... Line 30...
24
echo  "from distutils.core import setup" > ./setup.py
30
echo  "from distutils.core import setup" > ./setup.py
25
echo  "import py2exe" >> ./setup.py
31
echo  "import py2exe" >> ./setup.py
26
echo  "setup(console=['VibrationTest.py'])" >> ./setup.py
32
echo  "setup(console=['VibrationTestGui.py'])" >> ./setup.py
Line 27... Line 33...
27
 
33
 
Line 28... Line 34...
28
python setup.py py2exe > /dev/null
34
python setup.py py2exe >> $LOG
29
 
35
 
Line 30... Line 36...
30
mkdir $DIST/VibrationTestExe -p
36
mkdir $DIST/VibrationTestExe -p
31
cd $DIST/VibrationTestExe
37
cd $DIST/VibrationTestExe
32
cp $TMP/dist/* ./ -a
38
cp $TMP/dist/* ./ -a
33
 
39