#!/bin/bash
# Save the script in ~/bin/ and set it the mode "755"
#

CODE_DIR=~/workspace/sample
TRAC_DIR=~/workspace/trac_svn/cloud/sample/hadoop-0.16

printf "copy $CODE_DIR to $TRAC_DIR  \n"
#printf "copy ~/workspace/sample/ to ~/workspace/trac_svn/cloud/sample/hadoop-0.16/  \n"
cp -ruf $CODE_DIR/*.java $TRAC_DIR
#cp -ruf /home/waue/workspace/sample/*.java /home/waue/workspace/trac_svn/cloud/sample/hadoop-0.16/

cd $TRAC_DIR
#cd /home/waue/workspace/trac_svn/cloud/sample
#find ./ -name "*.class" |xargs rm 

printf "Svn start ... \n "
svn update
svn add --force ./
svn ci
