summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 85b9a1e..223d02f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -84,12 +84,12 @@ task :prep do
FileUtils.cp Dir["#{vendor_src_path}/*.h"], build_path
# the *.c files need api/yajl_foo.h headers
- Dir.mkdir "#{build_path}/api" unless Dir.exist?("#{build_path}/api")
+ Dir.mkdir "#{build_path}/api" unless File.exist?("#{build_path}/api")
FileUtils.cp Dir["#{vendor_src_path}/api/*.h"], "#{build_path}/api"
# the header files need yajl/yajl_foo.h headers (and windows symlinks
# are a bit of a PITA so just copy them all)
- Dir.mkdir "#{build_path}/yajl" unless Dir.exist?("#{build_path}/yajl")
+ Dir.mkdir "#{build_path}/yajl" unless File.exist?("#{build_path}/yajl")
FileUtils.cp Dir["#{vendor_src_path}/api/*.h"], "#{build_path}/yajl"
# apply patches that haven't yet been pushed upstream