about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-03-10 02:40:26 +0000
committerEric Wong <normalperson@yhbt.net>2011-03-10 02:40:26 +0000
commit7c3447f481067ac6d25b291e206e23a6b55d78d1 (patch)
tree38e7dac3e924b8e741d221203a3541df18d502c9
parenteb12922fdc860ce780617a3b8302cad7c6ff9666 (diff)
downloadsleepy_penguin-7c3447f481067ac6d25b291e206e23a6b55d78d1.tar.gz
-rw-r--r--pkg.mk7
-rw-r--r--script/isolate_for_tests30
2 files changed, 4 insertions, 33 deletions
diff --git a/pkg.mk b/pkg.mk
index cf36084..a09196d 100644
--- a/pkg.mk
+++ b/pkg.mk
@@ -46,21 +46,22 @@ lib := $(lib):$(ext_pfx)/$(ext)
 build: $(ext_dl)
 endif
 
-pkg_extra := GIT-VERSION-FILE NEWS ChangeLog LATEST
+pkg_extra += GIT-VERSION-FILE NEWS ChangeLog LATEST
 ChangeLog: GIT-VERSION-FILE .wrongdoc.yml
         $(WRONGDOC) prepare
+NEWS LATEST: ChangeLog
 
 manifest:
         $(RM) .manifest
         $(MAKE) .manifest
 
-.manifest: ChangeLog
+.manifest: $(pkg_extra)
         (git ls-files && for i in $@ $(pkg_extra); do echo $$i; done) | \
                 LC_ALL=C sort > $@+
         cmp $@+ $@ || mv $@+ $@
         $(RM) $@+
 
-doc:: .document .wrongdoc.yml
+doc:: .document .wrongdoc.yml $(pkg_extra)
         -find lib -type f -name '*.rbc' -exec rm -f '{}' ';'
         -find ext -type f -name '*.rbc' -exec rm -f '{}' ';'
         $(RM) -r doc
diff --git a/script/isolate_for_tests b/script/isolate_for_tests
deleted file mode 100644
index 95f802e..0000000
--- a/script/isolate_for_tests
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env ruby
-# scripts/Makefiles can read and eval the output of this script and
-# use it as RUBYLIB
-require 'rubygems'
-require 'isolate'
-fp = File.open(__FILE__, "rb")
-fp.flock(File::LOCK_EX)
-
-ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
-opts = {
-  :system => false,
-  # we want "ruby-1.8.7" and not "ruby-1.8", so disable :multiruby
-  :multiruby => false,
-  :path => "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}",
-}
-
-pid = fork do
-  Isolate.now!(opts) do
-    gem 'strace_me', '1.0.0'
-  end
-end
-_, status = Process.waitpid2(pid)
-status.success? or abort status.inspect
-lib_paths = Dir["#{opts[:path]}/gems/*-*/{lib,ext}"]
-lib_paths.map! { |x| File.expand_path(x) }
-dst = "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}/isolate.mk"
-File.open("#{dst}.#$$", "w") do |fp|
-  fp.puts "ISOLATE_LIBS=#{lib_paths.join(':')}"
-end
-File.rename("#{dst}.#$$", dst)