Sha256: 99f669985a717d58c77919ea4b7ac69040af18a38433061b2d6fa92dac83aa8c

Contents?: true

Size: 606 Bytes

Versions: 3

Compression:

Stored size: 606 Bytes

Contents

require 'fileutils'
include FileUtils

#Hack for linux (we should have a writable dirs in the gem subdirs)
chmod_R 0777, File.dirname(__FILE__) + "/.."

#This is the hack, we make all the things to make it look like an extension has compiled

File.open('Makefile', 'w') { |f| f.write "all:\n\ninstall:\n\n" }
File.open('make', 'w') do |f|
  f.write '#!/bin/sh'
  f.chmod f.stat.mode | 0111
end
File.open('rhodes_postinstallhack' + '.so', 'w') { |f| f.chmod 0777}
File.open('rhodes_postinstallhack' + '.dll', 'w') { |f| f.chmod 0777}
File.open('nmake.bat', 'w') { |f| f.write "ECHO \"Done\""
	f.chmod 0777}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rhoconnect-client-7.6.0 ./ext/extconf-chmod.rb
rhoconnect-client-7.5.1 ./ext/extconf-chmod.rb
rhoconnect-client-7.4.1 ./ext/extconf-chmod.rb