aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike Naberezny2014-05-21 21:04:36 -0700
committerJack Nagel2014-05-22 09:40:18 -0500
commitdd2332f595caa75894f03be9f551d10c546265b1 (patch)
tree7bed76970153c01da4c127dbd551fb5f58f5edef /Library
parentebe0c24a68510e49cdde9c0b76b512a09be71656 (diff)
downloadhomebrew-dd2332f595caa75894f03be9f551d10c546265b1.tar.bz2
opengrm-ngram: use full path of executable
Closes #29481. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/opengrm-ngram.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/Library/Formula/opengrm-ngram.rb b/Library/Formula/opengrm-ngram.rb
index d93590bb5..a22c08fdd 100644
--- a/Library/Formula/opengrm-ngram.rb
+++ b/Library/Formula/opengrm-ngram.rb
@@ -21,18 +21,18 @@ class OpengrmNgram < Formula
test do
resource("earnest").stage do
- fname = "earnest.txt"
- # tests using normalized The Importance of Being Earnest, based on
- # examples from the OpenGRM "NGram quick tour" page...
- system "ngramsymbols", fname, "e.syms"
- system "farcompilestrings", "-symbols=e.syms",
- "-keep_symbols=1",
- fname, "e.far"
- system "ngramcount", "-order=5", "e.far", "e.cnts"
- system "ngrammake", "e.cnts", "e.mod"
- system "ngramshrink", "-method=relative_entropy", "e.mod", "e.pru"
- system "ngramprint", "--ARPA", "e.mod"
- system "ngraminfo", "e.mod"
+ fname = "earnest.txt"
+ # tests using normalized The Importance of Being Earnest, based on
+ # examples from the OpenGRM "NGram quick tour" page...
+ system bin/"ngramsymbols", fname, "e.syms"
+ system bin/"farcompilestrings", "-symbols=e.syms",
+ "-keep_symbols=1",
+ fname, "e.far"
+ system bin/"ngramcount", "-order=5", "e.far", "e.cnts"
+ system bin/"ngrammake", "e.cnts", "e.mod"
+ system bin/"ngramshrink", "-method=relative_entropy", "e.mod", "e.pru"
+ system bin/"ngramprint", "--ARPA", "e.mod"
+ system bin/"ngraminfo", "e.mod"
end
end
end