diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-30 03:18:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-30 03:18:45 +0000 |
commit | 6a734c810c09a1eb40ed1382bfda59fc7d389cb2 (patch) | |
tree | 0d526ca7552c09abc0b235a340177da7f01a6a81 /enc/make_encdb.rb | |
parent | df456060b93c445308a02ac6ed175ce05279fb7f (diff) |
* common.mk (prelude.c): simply depends on PREP. [ruby-dev:34877]
* enc/make_encdb.rb, enc/trans/make_transdb.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/make_encdb.rb')
-rwxr-xr-x | enc/make_encdb.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/enc/make_encdb.rb b/enc/make_encdb.rb index 013eabe1d7..6f71c3dfe6 100755 --- a/enc/make_encdb.rb +++ b/enc/make_encdb.rb @@ -65,12 +65,6 @@ end result = encodings.map {|e| %[ENC_DEFINE("#{e}");\n]}.join + lines.join + "\n#define ENCODING_COUNT #{count}\n" -mode = IO::RDWR|IO::CREAT -mode |= IO::BINARY if defined?(IO::BINARY) -open(outhdr, mode) do |f| - unless f.read == result - f.rewind - f.truncate(0) - f.print result - end +open(outhdr, 'wb') do |f| + f.print result end |