-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstaller
More file actions
executable file
·24 lines (22 loc) · 961 Bytes
/
installer
File metadata and controls
executable file
·24 lines (22 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# Simple bootstrap script for the installer. This script uses the bundled
# Ruby interpreter binary whenever possible, and falls back to the system's
# Ruby interpreter if no suitable bundled Ruby interpreter exists.
dir=`dirname "$0"`
cd "$dir"
unset GEM_HOME
unset GEM_PATH
unset RUBYOPT
platform="`uname`-`uname -m`"
if (ruby -e '') 2>/dev/null; then
exec ruby installer.rb "$@"
else
#echo "Using 'runtime/$platform/ruby'"
if ("runtime/$platform/ruby" -e '') 2>/dev/null; then
exec "runtime/$platform/ruby" installer.rb "$@"
else
echo "*** ERROR: Ruby is not installed ***" >&2
echo "The Ruby Enterprise Edition installer is written in Ruby. This source tarball bundles precompiled versions of Ruby for many platforms for the purpose of running this installer, but unfortunately we did not include a precompiled Ruby binary for the current platform. So please install Ruby manually, then run this installer again." >&2
exit 10
fi
fi