Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 45 lines (36 sloc) 937 Bytes
#! /usr/bin/env bash
# script to build gems for all relevant platforms:
# - MRI et al (standard gem)
# - windows (x86-mingw32 and x64-mingw32)
# - jruby
# Load RVM into a shell session *as a function*
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
source "/usr/local/rvm/scripts/rvm"
echo "ERROR: An RVM installation was not found.\n"
set -o errexit
rm -rf tmp pkg
bundle exec rake clean clobber
# holding pen
rm -rf gems
mkdir -p gems
# windows
bundle exec rake gem:windows
cp -v pkg/nokogiri*{x86,x64}-mingw32*.gem gems
bundle exec rake clean
bundle exec rake gem
cp -v pkg/nokogiri*.gem gems
# jruby
bundle exec rake clean clobber
bundle exec rake generate
rvm jruby
gem install bundler --conservative
bundle install --quiet --local || bundle install
bundle exec ruby -S rake gem
cp -v pkg/nokogiri*java.gem gems