Subversion Repositories Projects

Rev

Rev 561 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
559 FredericG 1
#! /usr/bin/bash
2
 
3
HOME=$(pwd)
4
DIST=$HOME/dist
5
TMP=$DIST/tmp
6
 
7
echo Python Code...
8
mkdir $DIST/VibrationTest -p
9
cd $DIST/VibrationTest
10
cp $HOME/VibrationTest/*.py  ./
11
 
12
echo Compiled Python Code...
13
mkdir $TMP -p
14
cd $TMP
15
rm -rf
16
 
17
cp $HOME/VibrationTest/*.py  ./
18
echo  "from distutils.core import setup" > ./setup.py
19
echo  "import py2exe" >> ./setup.py
20
echo  "setup(console=['VibrationTest.py'])" >> ./setup.py
21
 
22
python setup.py py2exe > /dev/null
23
 
24
mkdir $DIST/VibrationTestExe -p
25
cd $DIST/VibrationTestExe
26
cp $TMP/dist/* ./ -a
27
 
28
echo Cleanup...
29
rm $TMP -rf
30
 
31
echo Zipping...
32
cd $DIST
33
atool -a VibrationTest_0_0.zip VibrationTest > /dev/null
34
atool -a VibrationTestExe_0_0.zip VibrationTestExe > /dev/null
35
 
36
 
37
 
38
 
39
 
40
 
41
 
42
 
43