my-boxen/script/bootstrap

27 lines
584 B
Text
Raw Normal View History

2012-10-02 14:43:59 -04:00
#!/bin/sh
# Make sure all our local dependencies are available.
2012-10-03 14:12:49 -04:00
set -e
2012-10-02 14:43:59 -04:00
# FIX: only sudo if gem home isn't writable
(gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) ||
sudo gem install bundler --no-rdoc --no-ri
# We don't want old config hanging around.
rm -rf .bundle/config
rm -rf .librarian/puppet/config
2012-10-02 14:43:59 -04:00
# Export CC to explicitly set the compiler used for cexts.
export CC=gcc
# Bundle install unless we're already up to date.
bundle install --binstubs bin --path .bundle --quiet "$@"
# Install all our Puppet dependencies.
bin/librarian-puppet install --path=shared