#!/bin/sh

if [ -z "$1" -o -z "$2" ]; then
  echo "please specify gcin_table_dir gcin_bin_dir"
fi

cd

if [ ! -d .gcin ]; then
  mkdir .gcin
fi

if [ ! -d .gcin/config ]; then
  mkdir .gcin/config
fi

cd $1 || echo "$1 is not a gcin table dir"

for i in pho.tab pho-huge.tab tsin* symbol-table phrase.table
do
  if [ ! -f ~/.gcin/$i ]; then
     cp $i ~/.gcin
  fi
done
