File: ruby-interpreter

package info (click to toggle)
ruby-mizuho 0.9.20%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 328 kB
  • ctags: 86
  • sloc: ruby: 1,265; makefile: 16; sh: 13; python: 3
file content (14 lines) | stat: -rwxr-xr-x 353 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
if test -e /usr/bin/ruby; then
	exec /usr/bin/ruby "$@"
elif test -e /usr/bin/ruby2.0; then
	exec /usr/bin/ruby2.0 "$@"
elif test -e /usr/bin/ruby1.9.3; then
	exec /usr/bin/ruby1.9.3 "$@"
elif test -e /usr/bin/ruby1.9.1; then
	exec /usr/bin/ruby1.9.1 "$@"
elif test -e /usr/bin/ruby1.8; then
	exec /usr/bin/ruby1.8 "$@"
else
	exec ruby "$@"
fi