summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-12 14:54:16 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-12 14:54:16 +0000
commitd8b6f0272696b45d350e79662ebdb6ecd08896fb (patch)
tree51860ffd6cc14b5bad37add3cc7619667fa4394e /tool
parentaf9888f31576fd89ade9e308569f76bbdb45bd2a (diff)
downloadruby-d8b6f0272696b45d350e79662ebdb6ecd08896fb.tar.gz
ruby-d8b6f0272696b45d350e79662ebdb6ecd08896fb.tar.xz
ruby-d8b6f0272696b45d350e79662ebdb6ecd08896fb.zip
merges r20583 from trunk into ruby_1_9_1.
* tool/make-snapshot (package): enc.mk in snapshot is dummy and should not deal with objects. [ruby-core:20422] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/make-snapshot8
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 7b257f3d1..1f6624278 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -161,6 +161,14 @@ def package(rev, destdir)
f.puts(IO.read("Makefile.in")[/^lex\.c.*?^$/m])
f.puts(commonmk.gsub(/\{[^{}]*\}/, ""))
end
+ File.open("enc.mk", "r+b") do |f|
+ data = f.read
+ data.gsub!(/^((?:ENC|TRANS)(?:OBJ|SO)(?:S|DIR)\s*=)(?:.*\\\n)*.*/, '\1')
+ data.sub!(/^(clean:.*)(?:\n\t.*)+/, '\1')
+ f.rewind
+ f.truncate(0)
+ f.print data
+ end
clean.push("rbconfig.rb", ".rbconfig.time")
print "prerequisites"
else