Sha256: d41f3a4aaeae84697173b98a53b2109728c65f8a1c43daf1b2ca0506b783f628

Contents?: true

Size: 931 Bytes

Versions: 6

Compression:

Stored size: 931 Bytes

Contents

#!/bin/bash 
# This is a simple setup script that generates an enviroment file that
# is used to setup the ruby enviroment to run the urbanopt-cli tool.
# To use, just run this script in bash (e.g. ./setup-env.sh)
# Then you can use this env.sh to setup the enviroment.
# (e.g. . env.sh)

BASE_DIR_NAME="$(cd "$(dirname "$0")" && pwd)"

GEM_HOME=${BASE_DIR_NAME}/gems/ruby/2.5.0
GEM_PATH=${BASE_DIR_NAME}/gems/ruby/2.5.0
PATH=${BASE_DIR_NAME}/ruby/bin:${BASE_DIR_NAME}/gems/ruby/2.5.0/bin:$PATH
RUBYLIB=${BASE_DIR_NAME}/OpenStudio/Ruby
RUBY_DLL_PATH=${BASE_DIR_NAME}/OpenStudio/Ruby

# Remove if exists
if [ -f ~/.env_uo.sh ]; then
  rm ~/.env_uo.sh
fi

echo "export GEM_HOME=\"${GEM_HOME}\"" >> ~/.env_uo.sh
echo "export GEM_PATH=\"${GEM_PATH}\"" >> ~/.env_uo.sh
echo "export PATH=\"${PATH}\"" >> ~/.env_uo.sh
echo "export RUBYLIB=\"${RUBYLIB}\"" >> ~/.env_uo.sh
echo "export RUBY_DLL_PATH=\"${RUBY_DLL_PATH}\"" >> ~/.env_uo.sh


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
urbanopt-cli-0.6.0 scripts/setup-env-unix.sh
urbanopt-cli-0.5.2 scripts/setup-env-unix.sh
urbanopt-cli-0.5.1 scripts/setup-env-unix.sh
urbanopt-cli-0.5.0 scripts/setup-env-unix.sh
urbanopt-cli-0.4.1 scripts/setup-env-unix.sh
urbanopt-cli-0.4.0 scripts/setup-env-unix.sh