Subversion Repositories SmartDukaan

Rev

Rev 95 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
48 ashish 1
#!/bin/bash
2
 
3
#read the language
4
 
5
path=$1
6
 
7
 
8
reldir=`dirname $0`
9
cd $reldir
10
 
11
directory=`pwd`
12
echo $directory
13
#gen-java path
14
 
15
java_path=`dirname $1`
16
 
17
 
18
echo "Deleting the directory gen-py"
19
 
20
remove=`rm -rf $java_path/gen-py`
21
 
22
remove=`rm -rf gen-py`
23
 
24
echo "Generating py files from thrift files"
25
#cd $java_path
26
 
3377 rajveer 27
status=`thrift -I GenericService -gen py $path`
48 ashish 28
 
3377 rajveer 29
 
48 ashish 30
echo $directory
31
 
32
 
33
echo "If no errors appear above, then files generated"
34
 
35
 
36
reldir=`dirname $0`
37
 
38
echo "copying files"
39
 
95 ashish 40
dir_to_copy="$java_path/../../../PyProj/src"
48 ashish 41
 
42
echo $dir_to_copy
43
 
95 ashish 44
copy=`cp -r gen-py/* $java_path/../../../PyProj/src/`
48 ashish 45
 
95 ashish 46
echo "files copied, pleae refresh PyProj in eclipse"