Sha256: c59b51394f21defbe7e296ac37919fe167571253140d52507f9250f568706a71

Contents?: true

Size: 942 Bytes

Versions: 19

Compression:

Stored size: 942 Bytes

Contents

#!/bin/bash --login
# USE THIS SCRIPT WHEN UPGRADING VERSIONS IN Gemfile
if [[ -d '/opt/pwn' ]]; then
  pwn_root='/opt/pwn' 
else
  pwn_root="${PWN_ROOT}"
fi

source /etc/profile.d/rvm.sh
ruby_version=`cat ${pwn_root}/.ruby-version`
ruby_gemset=`cat ${pwn_root}/.ruby-gemset`
rvm use ruby-$ruby_version@global
rvm gemset --force delete $ruby_gemset
if [[ -f "${pwn_root}/Gemfile.lock" ]]; then
  rm $pwn_root/Gemfile.lock
fi

rvm use ruby-$ruby_version@$ruby_gemset --create
export rvmsudo_secure_path=1
rvmsudo gem install bundler
if [[ $(uname -s) == "Darwin" ]]; then
  bundle config build.pg --with-pg-config=/opt/local/lib/postgresql96/bin/pg_config
  bundle config build.serialport \
    --with-cflags=-Wno-implicit-function-declaration \
    --with-cflags=-Wno-int-conversion
fi
bundle config build.serialport --with-cflags=-Wno-int-conversion
bundle install
# bundle install --full-index
rvm --default ruby-$ruby_version@$ruby_gemset

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pwn-0.5.228 reinstall_pwn_gemset.sh
pwn-0.5.227 reinstall_pwn_gemset.sh
pwn-0.5.226 reinstall_pwn_gemset.sh
pwn-0.5.225 reinstall_pwn_gemset.sh
pwn-0.5.224 reinstall_pwn_gemset.sh
pwn-0.5.223 reinstall_pwn_gemset.sh
pwn-0.5.222 reinstall_pwn_gemset.sh
pwn-0.5.221 reinstall_pwn_gemset.sh
pwn-0.5.220 reinstall_pwn_gemset.sh
pwn-0.5.219 reinstall_pwn_gemset.sh
pwn-0.5.217 reinstall_pwn_gemset.sh
pwn-0.5.216 reinstall_pwn_gemset.sh
pwn-0.5.215 reinstall_pwn_gemset.sh
pwn-0.5.214 reinstall_pwn_gemset.sh
pwn-0.5.213 reinstall_pwn_gemset.sh
pwn-0.5.212 reinstall_pwn_gemset.sh
pwn-0.5.211 reinstall_pwn_gemset.sh
pwn-0.5.210 reinstall_pwn_gemset.sh
pwn-0.5.209 reinstall_pwn_gemset.sh