Commit 3698582b92f33dba8474ac85e1c82b02616d6131
1 parent
cad3003b
Exists in
master
and in
22 other branches
add dependency installation script for ubuntu precise
Showing
1 changed file
with
23 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,23 @@ |
1 | +#!/bin/sh | |
2 | + | |
3 | +export DEBIAN_INTERFACE=noninteractive | |
4 | + | |
5 | +#run sudo apt-get update | |
6 | +#run sudo apt-get dist-upgrade -qy | |
7 | + | |
8 | +run sudo apt-get install -qy dctrl-tools | |
9 | + | |
10 | +packages=$(grep-dctrl -n -s Build-Depends,Depends,Recommends -S -X noosfero debian/control | sed -e 's/([^)]*)//g; s/,\s*/\n/g' | grep -v 'rake\|ruby\|thin\|debhelper\|cucumber\|rail\|memcached\|debconf\|dbconfig-common\|misc:Depends\|adduser\|mail-transport-agent') | |
11 | + | |
12 | +run sudo apt-get install -qy ruby1.9.1-full build-essential libxml2-dev libxslt-dev libpq-dev libmagickcore-dev libmagickwand-dev $packages | |
13 | + | |
14 | + | |
15 | +export GEM_HOME=$(ruby -e 'puts Gem.user_dir') | |
16 | +export PATH="${GEM_HOME}/bin:${PATH}" | |
17 | +(gem list | grep bundler) || run gem install --no-rdoc --no-ri bundler | |
18 | +run bundle install | |
19 | + | |
20 | +sudo tee /etc/profile.d/rubygems-path.sh <<EOF | |
21 | +export GEM_HOME=\$(ruby -e 'puts Gem.user_dir') | |
22 | +PATH="\${GEM_HOME}/bin:\${PATH}" | |
23 | +EOF | ... | ... |