go-utils/oneelf.rb.in

19 lines
380 B
Ruby
Raw Normal View History

2010-11-08 14:11:20 +01:00
#!/usr/bin/ruby -w
# Licensed under GPL-2 or later
# Author: Petteri Räty <betelgeuse@gentoo.org>
$: << File.dirname(__FILE__)
2012-11-19 18:23:17 +01:00
require "@DATADIR@/@PACKAGE@/go-pkgutil.rb"
2010-11-08 14:11:20 +01:00
elf = ARGV[0]
if ! elf || ! is_elf(elf)
$stderr.puts 'This program takes one arguments that should be an elf file.'
exit 1
end
run_scanelf(elf) do | lib |
puts lib
puts "\t" + get_pkg_of_lib(lib)
end