File: ruby-standalone.in

package info (click to toggle)
ruby-standalone 0.5%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 76 kB
  • ctags: 28
  • sloc: sh: 67; makefile: 55; ruby: 34; ansic: 16
file content (14 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

ruby_standalone_dir=@@prefix@@/lib/ruby-standalone
shell=$(getent passwd $USER | cut -d : -f 7)

export RUBY_STANDALONE='@@prefix@@/lib/ruby-standalone'
export RUBY="${ruby_standalone_dir}/bin/ruby"
export PATH="$($RUBY -e 'puts Gem.user_dir')/bin:${ruby_standalone_dir}/bin:${PATH}"

if [ $# -eq 0 ]; then
  exec "$shell"
else
  exec "$@"
fi