Bash script to generate thrift files