Sha256: 597e7b7f023e0710eedf18fc5b83743c4f195cfd7dd7a3284ace6108cca4a988
Contents?: true
Size: 427 Bytes
Versions: 28
Compression:
Stored size: 427 Bytes
Contents
#!/usr/bin/env ruby require 'fileutils' include FileUtils::Verbose msg = "Usage: #$0 EXECUTABLE DIR [LIB ..]" executable = ARGV.shift or fail msg dir = ARGV.shift or fail msg dir = File.expand_path dir mkdir_p dir executable = `which #{executable}`.chomp libs = `ldd #{executable}`.gsub(/^(?:.*?\s+=>\s+|\s+)(.*?)\(.*/, '\1').grep(/\S/).map { |x| x.strip } libs.concat ARGV cd dir for l in libs cp l, File.basename(l) end
Version data entries
28 entries across 28 versions & 1 rubygems