Created
June 1, 2011 02:19
-
-
Save joshuamiller/1001682 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6d442e38286fa6c3a3ca9e355ee532c87cee1a90 Mon Sep 17 00:00:00 2001 | |
From: Joshua Miller <[email protected]> | |
Date: Tue, 31 May 2011 22:16:35 -0400 | |
Subject: [PATCH] Ensure runtime/ exists before building runtime/platform.conf | |
--- | |
rakelib/platform.rake | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
diff --git a/rakelib/platform.rake b/rakelib/platform.rake | |
index d580a25..22983df 100644 | |
--- a/rakelib/platform.rake | |
+++ b/rakelib/platform.rake | |
@@ -5,6 +5,7 @@ deps = %w[Rakefile rakelib/platform.rake] + Dir['lib/ffi/*rb'] | |
file 'runtime/platform.conf' => deps do |task| | |
puts "GEN runtime/platform.conf" | |
+ Dir.mkdir("runtime") unless File.exists?("runtime") | |
File.open task.name, "wb" do |f| | |
addrinfo = FFI::Generators::Structures.new 'addrinfo' do |s| | |
if BUILD_CONFIG[:windows] | |
-- | |
1.7.3.4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment