Sha256: eada091386fcd88276dcd52b023f554f3f1aca945bd32d9a120bd804c1d11687

Contents?: true

Size: 591 Bytes

Versions: 42

Compression:

Stored size: 591 Bytes

Contents

#!/usr/bin/env ruby

# Strip file on local folder instead of a Virtualbox shared folder
# to work around this bug: https://www.virtualbox.org/ticket/8463

require 'tempfile'
require 'fileutils'

strip = "#{File.basename($0)}.bin"

files = ARGV.reject{|f| f=~/^-/ }.map do |arg|
  tmp = Tempfile.new 'strip'
  tmp.close
  FileUtils.cp arg, tmp.path
  [tmp, arg]
end

options = ARGV.select{|f| f=~/^-/ } + files.map{|t,o| t.path }

unless system( strip, *options )
  exit 127
end
code = $?.exitstatus

files.each do |tmp, orig|
  FileUtils.rm orig
  FileUtils.cp tmp.path, orig
end

exit code

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
rake-compiler-dock-1.8.0 build/strip_wrapper_vbox
rake-compiler-dock-1.7.1 build/strip_wrapper_vbox
rake-compiler-dock-1.7.0 build/strip_wrapper_vbox
rake-compiler-dock-1.7.0.rc1 build/strip_wrapper_vbox
rake-compiler-dock-1.6.0 build/strip_wrapper_vbox
rake-compiler-dock-1.5.2 build/strip_wrapper_vbox
rake-compiler-dock-1.5.1 build/strip_wrapper_vbox
rake-compiler-dock-1.5.0 build/strip_wrapper_vbox
rake-compiler-dock-1.5.0.rc1 build/strip_wrapper_vbox
rake-compiler-dock-1.4.0 build/strip_wrapper_vbox
rake-compiler-dock-1.4.0.rc2 build/strip_wrapper_vbox
rake-compiler-dock-1.4.0.rc1 build/strip_wrapper_vbox
rake-compiler-dock-1.3.1 build/strip_wrapper_vbox
rake-compiler-dock-1.3.0 build/strip_wrapper
rake-compiler-dock-1.2.2 build/strip_wrapper
rake-compiler-dock-1.2.1 build/strip_wrapper
rake-compiler-dock-1.2.0 build/strip_wrapper
win32-api-1.10.1 vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/build/strip_wrapper
win32-api-1.10.0 vendor/bundle/ruby/2.5.0/gems/rake-compiler-dock-0.7.2/build/strip_wrapper
rake-compiler-dock-1.1.0 build/strip_wrapper