Rakefile in ruby-vpi-12.0.1 vs Rakefile in ruby-vpi-12.0.2
- old
+ new
@@ -226,11 +226,19 @@
s.requirements << "POSIX threads library"
s.requirements << "C language compiler"
s.files = FileList['**/*'].exclude('_darcs')
s.autorequire = PROJECT_ID
- s.executables = FileList['bin/*'].select {|f| File.executable?( f ) && File.file?( f )}.map {|f| File.basename f}
s.extensions << 'gem_extconf.rb'
+
+ # make tools executable
+ tools = FileList['bin/*.rb']
+
+ tools.each do |f|
+ chmod 0755, f
+ end
+
+ s.executables = tools.map {|f| File.basename f}
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end