Sha256: 3c8eae3155c677d906746103361654de331ad7c7a5fcfa61da5bd4f51410850b
Contents?: true
Size: 743 Bytes
Versions: 1
Compression:
Stored size: 743 Bytes
Contents
#!/usr/bin/env ratch # compile extensions main :compile => [:compile_base64, :compile_scanner_c] do end task :compile_base64 do file = nil cd('ext/tmail/base64') do ruby "extconf.rb" make file = glob("base64.#{dlext}").first file = File.expand_path(file) if file end if file mkdir_p("lib/tmail/#{arch}") mv(file, "lib/tmail/#{arch}/") end end task :compile_scanner_c do file = nil cd("ext/tmail/scanner_c") do ruby "extconf.rb" make file = glob("scanner_c.#{dlext}").first file = File.expand_path(file) if file end if file mkdir_p("lib/tmail/#{arch}") mv(file, "lib/tmail/#{arch}/") end end def dlext Config::CONFIG['DLEXT'] end def arch Config::CONFIG['arch'] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tmail-1.1.1 | bat/compile |