summaryrefslogtreecommitdiff
path: root/enc/unicode
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-24 00:23:46 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-24 00:23:46 (GMT)
commiteff68733639edcfbff9f090cc2dd11cf07ae90a4 (patch)
tree44a514e8de1165ee4d84677a4d6d254c088dcca4 /enc/unicode
parent417a000d1d91ee5985ea9fdf42e1047f480e2aeb (diff)
touch
* enc/unicode/case-folding.rb: touch the destination file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode')
-rwxr-xr-xenc/unicode/case-folding.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/enc/unicode/case-folding.rb b/enc/unicode/case-folding.rb
index f6aff0b..6a67d4f 100755
--- a/enc/unicode/case-folding.rb
+++ b/enc/unicode/case-folding.rb
@@ -370,7 +370,9 @@ if $0 == __FILE__
rescue Errno::ENOENT => e
raise unless /gperf/ =~ e.message
warn e.message
- exit dest && File.file?(dest) # assume existing file is OK
+ abort unless dest
+ File.utime(nil, nil, dest) # assume existing file is OK
+ exit
else
s = f.string
end