Created
January 5, 2012 21:20
-
-
Save jrgifford/1567370 to your computer and use it in GitHub Desktop.
install shoes on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install -y git-core ruby-rvm 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 | |
\# Load RVM into a shell session *as a function* | |
if [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then | |
\# Then try to load from a root install | |
source "/usr/local/rvm/scripts/rvm" | |
else | |
printf "ERROR: An RVM installation was not found.\n" | |
fi | |
rvm install 1.9.2 | |
#rvm --default use 1.9.2 | |
rvm gemset create 'shoes' | |
rvm --default use 1.9.2@shoes | |
# Using the Ubuntu RVM package | |
# As such, we are tied to ruby 1.9.2-p180. | |
gem-ruby-1.9.2-p180@shoes install bundler | |
# gotta hardwire everything. well, almost everything. | |
mkdir /tmp/shoes-install | |
git clone git://github.com/shoes/shoes.git /tmp/shoes-install/shoes | |
#for now we're using develop, 3dad8e4740612ac318458639fad4b508c260bc7a | |
rm /tmp/shoes-install/shoes/.rvmrc #have to delete, otherwise we run into problems with having to verify the rvmrc file. | |
cd /tmp/shoes-install/shoes/ | |
git checkout 3dad8e4740612ac318458639fad4b508c260bc7a | |
cd /tmp/shoes-install/shoes | |
cd /tmp/shoes-install/shoes/ | |
rake-ruby-1.9.2-p180@shoes | |
#cd /tmp/shoes-install/shoes/ | |
mkdir /opt/shoes | |
cp -r /tmp/shoes-install/shoes/dist/* /opt/shoes/ | |
#i'm a horrible bash scripter i know. BUT... it works. I think. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment