#!/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'
FileUtils.cp arg, tmp.path
[tmp, arg]
end
options = ARGV.select{|f| f=~/^-/ } + files.map{|t,o| t.path }
unless system( strip, *options )
puts "unable to execute #{strip}"
exit 127
end
code = $?.exitstatus
files.each do |tmp, orig|
FileUtils.cp tmp.path, orig
end
exit code | # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #1 | 16213 | perforce_software | Move files to proper depot path to view files correctly from project page. | ||
| //guest/perforce_software/p4ruby/r15.1/config/strip_wrapper | |||||
| #1 | 14759 | tjuricek |
p4ruby 2015.1.0 This will be a source gem targeted at Linux. Windows support will come after automated builds of the C++ p4api are available for MinGW-w64. For more information, please review the workshop project: https://swarm.workshop.perforce.com/projects/perforce-software-p4ruby/ |
||
| //guest/perforce_software/p4ruby/p15.1/config/strip_wrapper | |||||
| #1 | 14756 | tjuricek | p15.1 branch of p4ruby. | ||
| //guest/perforce_software/p4ruby/main/config/strip_wrapper | |||||
| #1 | 14719 | tjuricek |
Mirroring the current state of the workshop. From this point, we will try to rebuild the history of p4-ruby in the workshop from this codeline. |
||