skip generating gem file contents if this is not a git checkout
parent
ab6b5f381d
commit
0f832fd4d1
|
@ -24,9 +24,11 @@ Gem::Specification.new do |spec|
|
|||
spec.homepage = 'https://www.metasploit.com'
|
||||
spec.license = 'BSD-3-clause'
|
||||
|
||||
spec.files = `git ls-files`.split($/).reject { |file|
|
||||
file =~ /^documentation|^data\/gui|^external/
|
||||
}
|
||||
if File.directory?(File.join(__FILE__, ".git"))
|
||||
spec.files = `git ls-files`.split($/).reject { |file|
|
||||
file =~ /^documentation|^data\/gui|^external/
|
||||
}
|
||||
end
|
||||
spec.bindir = '.'
|
||||
if ENV['CREATE_BINSTUBS']
|
||||
spec.executables = [
|
||||
|
|
Loading…
Reference in New Issue