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

# change these two parameters to yours
CODE_DIR=~/workspace/sample
TRAC_DIR=~/workspace/trac_svn/cloud/sample/hadoop-0.16

#########################################
printf "copy $CODE_DIR to $TRAC_DIR  \n"
cp -ruf $CODE_DIR/*.java $TRAC_DIR

cd $TRAC_DIR
# if you want to delete any class files
# $> find ./ -name "*.class" |xargs rm 

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