Browse files

A lib/ subdirectory for more than just templates

  • Loading branch information...
1 parent 14effdd commit a25b06751b3664f60633056eb8c9aa58b2270af1 @jhs jhs committed Mar 16, 2012
Showing with 1 addition and 1 deletion.
  1. 0 { → lib}/templates/env.sh.erb
  2. +1 −1 tasks/lib.rb
View
0 templates/env.sh.erb → lib/templates/env.sh.erb
File renamed without changes.
View
2 tasks/lib.rb
@@ -128,7 +128,7 @@ def install_env_script(opts={})
# XXX: Code duplication from :configure.
dirs['DYLD_LIBRARY_PATH'] = {'insert' => ["#{target}/lib"]} if DISTRO[0] == :osx
- template = ERB.new(File.open("#{HERE}/templates/#{script}.erb").read())
+ template = ERB.new(File.open("#{HERE}/lib/templates/#{script}.erb").read())
FileUtils.mkdir_p(target)
File.open("#{target}/#{script}", 'w') do |outfile|
outfile.write(template.result(binding))

0 comments on commit a25b067

Please sign in to comment.