#!/usr/bin/env ruby <%- if (bundler? && (git? || hg? || svn?)) -%> root = File.expand_path(File.join(File.dirname(__FILE__),'..')) if File.directory?(File.join(root,'.<%= @scm %>')) Dir.chdir(root) do begin require 'bundler/setup' rescue LoadError => e warn e.message warn "Run `gem install bundler` to install Bundler" exit -1 end end end <%- end -%>