Commit 5f45a273d90554133c9339f0872f2bdd4bded4c8
1 parent
89ec5ec1
Exists in
master
and in
22 other branches
remove debian/bootstrap; enhance script/quick-start-debian
Showing
2 changed files
with
5 additions
and
12 deletions
Show diff stats
debian/bootstrap
| ... | ... | @@ -1,5 +0,0 @@ |
| 1 | -#!/bin/sh | |
| 2 | - | |
| 3 | -runtime_dependencies=$(sed -e '/^Depends:.*rails/!d; s/Depends: //; s/([^)]*)//g; s/,\s*/\n/g' debian/control | grep -v 'memcached\|debconf\|dbconfig-common\|postgresql\|misc:Depends\|adduser') | |
| 4 | -test_dependencies="libtidy-ruby libhpricot-ruby libmocha-ruby imagemagick po4a xvfb" | |
| 5 | -apt-get -y install $runtime_dependencies $test_dependencies |
script/quick-start-debian
| 1 | 1 | #!/bin/sh |
| 2 | 2 | |
| 3 | 3 | say() { |
| 4 | - echo -e "\033[33;01m$@\033[m" | |
| 4 | + msg="$@" | |
| 5 | + printf "\033[33;01m%s\033[m\n" "$msg" | |
| 5 | 6 | } |
| 6 | 7 | |
| 7 | 8 | run() { |
| ... | ... | @@ -15,12 +16,9 @@ run() { |
| 15 | 16 | fi |
| 16 | 17 | } |
| 17 | 18 | |
| 18 | -# Until Lenny tango-icon-theme is only available in non-free, so maybe we need | |
| 19 | -# to download it manually | |
| 20 | -run "sudo apt-get -y install tango-icon-theme || (wget http://ftp.br.debian.org/debian/pool/non-free/t/tango-icon-theme/tango-icon-theme_0.8.1-4_all.deb && sudo dpkg -i tango-icon-theme_0.8.1-4_all.deb)" | |
| 21 | - | |
| 22 | 19 | # needed to run noosfero |
| 23 | -run sudo apt-get -y install rails ruby rake libgettext-ruby1.8 libsqlite3-ruby rcov librmagick-ruby libredcloth-ruby libwill-paginate-ruby iso-codes libfeedparser-ruby libferret-ruby libdaemons-ruby mongrel mongrel-cluster | |
| 20 | +runtime_dependencies=$(sed -e '1,/^Depends:/d; /^Recommends:/,$ d; s/([^)]*)//g; s/,\s*/\n/g' debian/control | grep -v 'memcached\|debconf\|dbconfig-common\|postgresql\|misc:Depends\|adduser\|mail-transport-agent') | |
| 21 | +run sudo apt-get -y install $runtime_dependencies | |
| 24 | 22 | |
| 25 | 23 | # needed for development |
| 26 | 24 | run sudo apt-get -y install libtidy-ruby libhpricot-ruby libmocha-ruby imagemagick po4a xvfb |
| ... | ... | @@ -28,7 +26,7 @@ run sudo apt-get -y install libtidy-ruby libhpricot-ruby libmocha-ruby imagemagi |
| 28 | 26 | # create the database with sample data |
| 29 | 27 | run cp config/database.yml.sqlite3 config/database.yml |
| 30 | 28 | run rake db:schema:load |
| 31 | -run ./script/sample-data | |
| 29 | +run rake db:data:minimal | |
| 32 | 30 | |
| 33 | 31 | # compile translations |
| 34 | 32 | run rake noosfero:translations:compile | ... | ... |