Sha256: dd62217aedd82a645cef31d7511a44bc3f6f77d290a57f48825a9cde344840e6
Contents?: true
Size: 909 Bytes
Versions: 1
Compression:
Stored size: 909 Bytes
Contents
#! /usr/bin/ruby1.8 # This script builds alist of all roll-redy bin locations # and writes that list as an environment setting shell script. # On Linux a call to this to you .bashrc file. Eg. # # if [ -f ~/.rollrc ]; then # . roll --bin # fi # # Currently this only supports bash. # # TODO Is this the best way to do it, or would it be better # to "install" executables to an appropriate bin dir, # suing links (soft if possible). require 'roll/library' def windows processor, platform, *rest = RUBY_PLATFORM.split("-") platform == 'mswin32' end div = (windows ? ';' : ':') env_path = ENV['PATH'].split(/[#{div}]/) # Go thru each roll lib and make sure bin # path in path. new_path = [] Library.list.each do |libname| path = Library[libname].bin_path if path new_path = new_path | path end end bin_path = (["$PATH"] + new_path).join(div) puts %{export PATH="#{bin_path}";}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roll-0.8.0 | bin/roll |