Module: Gem
- Defined in:
- lib/fakext.rb
Overview
– DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004
Copyleft shura [[email protected]]
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
You just DO WHAT THE FUCK YOU WANT TO.
++
Class Method Summary collapse
Class Method Details
.fakext(lib, root = Dir.pwd) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/fakext.rb', line 14 def self.fakext(lib, root=Dir.pwd) File.open(File.join(root, 'Makefile'), 'w') {|f| f.write "all:\n\ninstall:\n\n" } if RUBY_PLATFORM =~ /(?<!dar)win|w32/ File.open(File.join(root, lib + '.dll'), 'w') {} File.open(File.join(root, 'nmake.bat'), 'w') {} else File.open(File.join(root, 'make'), 'w') {|f| f.write '#!/bin/sh' f.chmod f.stat.mode | 0111 } File.open(File.join(root, lib + '.so'), 'w') {} end end |