Skip to content

Instantly share code, notes, and snippets.

@mitsuru
Created December 16, 2008 15:35
Show Gist options
  • Save mitsuru/36631 to your computer and use it in GitHub Desktop.
Save mitsuru/36631 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ x"" == x"$1" ]; then
echo "Usage: $0 PROJECT_NAME"
exit
fi
rails $1
cd $1
for d in $(find -type d -empty); do touch $d/.git_placeholder; done
echo "*" > log/.gitignore
echo "rails" > vendor/.gitignore
echo "*.sqlite3" > db/.gitignore
git init
git add .
git ci -m 'Initial commit'
./script/plugin install git://github.com/dchelimsky/rspec.git
./script/plugin install git://github.com/dchelimsky/rspec-rails.git
git add .
git ci -m 'Add rspec plugin'
./script/generate rspec
git add .
git ci -m 'Generate rspec'
git rm public/index.html
git ci -m 'Delete index.html'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment