repo.or.cz
/
jruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fix for JRUBY-2882. Handle error messages related to constructors better
[jruby.git]
/
bench
/
yarv
/
prepare_so_count_words.rb
blob
54ea72b8ed894209ea59ee06d3b89fd6aa780770
1
# prepare 'wc.input'
\r
2
\r
3
def prepare_wc_input
\r
4
wcinput = File.join(File.dirname($0), 'wc.input')
\r
5
wcbase = File.join(File.dirname($0), 'wc.input.base')
\r
6
unless FileTest.exist?(wcinput)
\r
7
data = File.read(wcbase)
\r
8
13.times{
\r
9
data << data
\r
10
}
\r
11
open(wcinput, 'w'){|f| f.write data}
\r
12
end
\r
13
end
\r
14
\r
15
prepare_wc_input
\r