diff --git a/README.md b/README.md index 37e668b..eee415c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ The official RubyGems blog. Setup ===== -Make sure you have jekyll installed (`gem install bundler; bundle`), and run: +Run `bin/setup` to install Bundler + all the gems you'll need to get started. Then: $ jekyll serve diff --git a/bin/setup b/bin/setup new file mode 100755 index 0000000..5fe1141 --- /dev/null +++ b/bin/setup @@ -0,0 +1,17 @@ +#!/bin/sh +set -e +export PATH="$(dirname "$0")/../bin:$PATH" # Use binstubs + +if [ "$1" = "-v" ]; then + exec 3>&1 +else + exec 3>/dev/null +fi + +# Install dependencies +echo "Installing libraries and plugins" +{ gem list -i bundler || gem install bundler + bundle +} >&3 2>&1 + +echo "Done! Run \`bundle exec jekyll serve\` to start the server, then visit http://localhost:4000/"