Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow specifying multiple requirements at a time

  • Loading branch information...
commit e7d02e3d4670d93ede1f7ff0882d8f287ded06e4 1 parent 5e16dbf
@mpapis mpapis authored
Showing with 25 additions and 20 deletions.
  1. +25 −20 scripts/functions/requirements/ubuntu
View
45 scripts/functions/requirements/ubuntu
@@ -26,26 +26,31 @@ function requirements_ubuntu()
(( UID == 0 )) || command_to_run+=( sudo )
- case "$1" in
- (update-system)
- "${command_to_run[@]}" apt-get "${command_flags[@]}" update
- ;;
- (jruby*head)
- "${command_to_run[@]}" apt-get --no-install-recommends "${command_flags[@]}" install ant openjdk-6-jdk
- ;;
- (jruby*)
- "${command_to_run[@]}" apt-get --no-install-recommends "${command_flags[@]}" install curl g++ openjdk-6-jre-headless
- ;;
- (ir*)
- "${command_to_run[@]}" apt-get --no-install-recommends "${command_flags[@]}" install curl mono-2.0-devel
- ;;
- (opal)
- "${command_to_run[@]}" apt-get --no-install-recommends "${command_flags[@]}" install nodejs npm
- ;;
- (*)
- "${command_to_run[@]}" apt-get --no-install-recommends "${command_flags[@]}" install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config
- ;;
- esac
+ while
+ (( $# ))
+ do
+ case "$1" in
+ (update-system)
+ "${command_to_run[@]}" apt-get "${command_flags[@]}" update
+ ;;
+ (jruby*head)
+ "${command_to_run[@]}" apt-get --no-install-recommends "${command_flags[@]}" install ant openjdk-6-jdk
+ ;;
+ (jruby*)
+ "${command_to_run[@]}" apt-get --no-install-recommends "${command_flags[@]}" install curl g++ openjdk-6-jre-headless
+ ;;
+ (ir*)
+ "${command_to_run[@]}" apt-get --no-install-recommends "${command_flags[@]}" install curl mono-2.0-devel
+ ;;
+ (opal)
+ "${command_to_run[@]}" apt-get --no-install-recommends "${command_flags[@]}" install nodejs npm
+ ;;
+ (*)
+ "${command_to_run[@]}" apt-get --no-install-recommends "${command_flags[@]}" install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config
+ ;;
+ esac
+ shift
+ done
}
requirements_ubuntu "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.