Sha256: b2a652b1772702e6b8c20e0224be296166db8e70834f8753ff3fa1f523647cd6
Contents?: true
Size: 527 Bytes
Versions: 2
Compression:
Stored size: 527 Bytes
Contents
#!/usr/bin/env ruby def usage puts <<END Usage: mesh [ARGS]... Options: -v verbose mode --version show version END exit end argv = ARGV usage if argv.length.zero? if argv[0] == '--version' require 'mesh/version' puts "mesh-rb version #{Mesh.VERSION}" end lib_name = 'libmesh.so' lib_dir = File.expand_path("../lib/", File.dirname(__FILE__)) if File.exist?("#{lib_dir}/#{lib_name}") puts 'Using mesh as an allocator' ENV.store('LD_PRELOAD', "#{lib_dir}/#{lib_name}") end Kernel.exec(*argv)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mesh-rb-0.0.2 | bin/mesh |
mesh-rb-0.0.1 | bin/mesh |