Basic initial support for perl.

This commit is contained in:
Adam Sanderson 2010-12-11 22:50:49 -08:00
parent 6a4fecc044
commit d9c1c94296
1 changed files with 6 additions and 0 deletions

View File

@ -95,6 +95,12 @@ module Qwandry
add :gem, path
end
# Add perl repositories:
perl_paths = `perl -e 'foreach $k (@INC){print $k,"\n";}'` rescue ''
perl_paths.split("\n").reject{|path| path == '' || path == '.'}.each do |path|
add :perl, path, :class=>Qwandry::LibraryRepository
end
activate :ruby, :gem
end