Skip to content

Instantly share code, notes, and snippets.

View stefan-pdx's full-sized avatar

Stefan Novak stefan-pdx

  • FreeFlyer
  • Portland, OR
View GitHub Profile
@stefan-pdx
stefan-pdx / Rakefile
Last active February 6, 2019 11:06
require 'nokogiri'
namespace 'conan' do
desc 'Export Conan binary directories to the CONAN_BINARY_DIRECTORIES environment variable'
task :export_env do
doc = File.open('conanbuildinfo.props') { |f| Nokogiri::XML(f) }
paths = doc.search("ConanBinaryDirectories").first.text
`setx.exe CONAN_BINARY_DIRECTORIES "#{paths}"`
end
end