Blame view

script/bootstrap 584 Bytes
9d3e514b9   John Barnette   Initial commit
1
2
  #!/bin/sh
  # Make sure all our local dependencies are available.
62a36b906   John Barnette   Fail fast
3
  set -e
9d3e514b9   John Barnette   Initial commit
4
5
6
7
8
9
10
11
  # 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
a32baeef4   John Barnette   Remove librarian-...
12
  rm -rf .librarian/puppet/config
9d3e514b9   John Barnette   Initial commit
13
14
15
16
17
18
19
20
  
  # 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 "$@"
a9c14be39   John Barnette   Things managed by...
21
22
23
24
  
  # Install all our Puppet dependencies.
  
  bin/librarian-puppet install --path=shared