Skip to content

@plexus /shoes-build.sh secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
#!/bin/bash
set -e
export SANDBOX=/tmp/shoes_build
export PREFIX=${SANDBOX}/opt
export PATH=${PREFIX}/bin:${PATH}
export RUBY_VERSION=1.9.3-p392
export RUBY_HOME=${SANDBOX}/ruby-${RUBY_VERSION}
mkdir -p $PREFIX
function github() {
pushd $SANDBOX
[[ -d $2 ]] || git clone https://github.com/${1}.git $2
popd
}
sudo apt-get install git libcairo2-dev libpixman-1-dev libpango1.0-dev libgif-dev libjpeg-dev libgtk2.0-dev vlc libvlc-dev portaudio19-dev libsqlite3-dev libcurl4-openssl-dev libxslt1-dev makeself curl libxslt-dev libxml2-dev libcurl4-openssl-dev libungif4-dev ruby1.9.1-full
if [[ ! -d $RUBY_HOME ]] ; then
github sstephenson/ruby-build ruby-build
cd $SANDBOX/ruby-build
./install.sh
cd ..
ruby-build $RUBY_VERSION $RUBY_HOME
fi
github postmodern/chruby chruby
. $SANDBOX/chruby/share/chruby/chruby.sh
RUBIES=$RUBY_HOME chruby $RUBY_VERSION
github shoes/shoes red-shoes
gem install bundler
# ugly but it works
[[ -f ${RUBY_HOME}/lib/libruby*.so ]] || ln -s /usr/lib/libruby-1.9.1.so ${RUBY_HOME}/lib/libruby.so
cd $SANDBOX/red-shoes
bundle install
rake
echo "Find your new Shoes in $SANDBOX/red-shoes/dist !"
@Romaboy

shoes-build.sh: 14: shoes-build.sh: Syntax error: "(" unexpected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.