mkdir svn_setup
cd svn_setup/
rails blab
cd blab
mv config/database.yml config/database_example.yml
rm -r log/*
rm -r tmp/*
cd ..
mv blab trunk
mkdir tags
mkdir branches
svn import . svn://localhost/blab -m "initial import" --username rbates
cd ../
svn co svn://localhost/blab/trunk blab
cd blab
cp config/database_example.yml config/database.yml
svn propset svn:ignore database.yml config/
svn propset svn:ignore "*" log/
svn propset svn:ignore "*" tmp/
svn commit -m "ignoring files"