Skip to content

Commit

Permalink
Smarter installing of library files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacius committed Dec 18, 2007
1 parent d472b7c commit ddc058c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Rakefile
Expand Up @@ -398,7 +398,17 @@ end
desc "Install just the library"
task :install_lib do |task|
puts "Installing library to #{$options[:sitelibdir]}"
cp_r FileList.new("./lib/rubygame*"), $options[:sitelibdir]

files = FileList.new do |fl|
fl.include("lib/**/*.rb")
fl.exclude(/svn/)
end

files.each do |f|
dir = File.join($options[:sitelibdir], File.dirname(f).sub('lib',''), "")
mkdir_p dir
cp f, dir
end
end

desc "Install both the extensions and the library"
Expand Down

0 comments on commit ddc058c

Please sign in to comment.