Rev 95 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/bash#read the languagepath=$1reldir=`dirname $0`cd $reldirdirectory=`pwd`echo $directory#gen-java pathjava_path=`dirname $1`echo "Deleting the directory gen-py"remove=`rm -rf $java_path/gen-py`remove=`rm -rf gen-py`echo "Generating py files from thrift files"#cd $java_pathstatus=`thrift -I GenericService -gen py $path`echo $directoryecho "If no errors appear above, then files generated"reldir=`dirname $0`echo "copying files"dir_to_copy="$java_path/../../../PyProj/src"echo $dir_to_copycopy=`cp -r gen-py/* $java_path/../../../PyProj/src/`echo "files copied, pleae refresh PyProj in eclipse"