Sha256: a334586ae3818fc854f4257a92b8109d6ff3081c329e9836e7de462f29949748

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

# Pick one EVENT or SWIFTIPLY
# To run a Rails app in evented mode (eventmachine gem)
export EVENT=1

# To run in swiftiplied mode (swiftiply gem)
#export SWIFTIPLY=1

# HACK: broken locales
my_hosttype="${HOSTTYPE:='unknown_hosttype'}"
my_kernel="${OSTYPE:='unknown_kernel'}"
my_hosttype=$(uname -a)
my_kernel=$(uname -s)

if [ "${my_kernel}" != 'Darwin' ]; then
 my_kernel="${my_kernel/SunOS/solaris}"
fi

# TODO: re-write my_osver detection to include major-minor-patch
my_ostype="${my_kernel/Darwin*/darwin}"
my_osver="${my_kernel/darwin/}"

if [ "${my_ostype}" != 'darwin' ]; then
  my_ostype="${my_kernel/Linux*/linux}"
  if [ "${my_ostype}" != 'linux' ]; then
    my_ostype="${my_kernel/-gnu/}"
  fi
  my_osver="${my_kernel/linux-/}"
  if [ ${my_ostype} != 'linux' ]; then
    my_ostype="${my_kernel/solaris*/solaris}"
    my_osver="${my_kernel/solaris/}"
  fi
fi

case "${my_ostype}" in
'darwin' )
  LC_CTYPE='en_US.UTF-8'; builtin export LC_CTYPE
  LC_ALL='en_US.UTF-8'; builtin export LC_ALL # Mnt. Lion
  ;;
'linux' )
  LANG='en_US.UTF-8'; builtin export LANG
  ;;
* )
  echo "Unsupported OS: ${my_ostype}"
  ;;
esac

rvm 1.9.3-p392-patched@rails-mark_requirements

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-mark_requirements-0.0.1 .rvmrc