summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-04-16 22:40:07 +0200
committerJochen Topf <jochen@topf.org>2013-04-16 22:40:07 +0200
commit1a7a81ba1a1e32ee9499cfc72a05d08a826b5e1e (patch)
tree835a50e8095002c1467066ce254e2148de9826db /bin
parent115665f4a53086e580df1e7cc5523e7e9d38382b (diff)
downloadtaginfo-1a7a81ba1a1e32ee9499cfc72a05d08a826b5e1e.tar
taginfo-1a7a81ba1a1e32ee9499cfc72a05d08a826b5e1e.tar.gz
Check ruby version when running taginfo
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check-translations.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/check-translations.rb b/bin/check-translations.rb
index e96750b..9f76638 100755
--- a/bin/check-translations.rb
+++ b/bin/check-translations.rb
@@ -3,6 +3,14 @@
# check-translations.rb DIR LANG
#
+v=RUBY_VERSION.split('.').map{ |x| x.to_i }
+if (v[0]*100+v[1])*100+v[0] < 10901
+ STDERR.puts "You need at least Ruby 1.9.1 to run taginfo"
+ exit(1)
+end
+
+#------------------------------------------------------------------------------
+
require 'yaml'
dir = ARGV[0]