Permalink
Browse files

add openbsd requirements

  • Loading branch information...
1 parent 7cf062d commit b07ac0ceccc72fd1911795fe6822ac14b5e7c135 @mpapis mpapis committed Jan 15, 2013
Showing with 58 additions and 0 deletions.
  1. +58 −0 scripts/functions/requirements/openbsd
@@ -0,0 +1,58 @@
+#!/usr/bin/env bash
+
+function requirements_gentoo()
+{
+ typeset -a command_to_run command_flags
+ command_to_run=()
+ command_flags=()
+
+ while
+ (( $# ))
+ do
+ case "$1" in
+ (echo)
+ command_to_run+=( $1 )
+ shift
+ ;;
+ (force)
+ shift
+ ;;
+ (*)
+ break
+ ;;
+ esac
+ done
+
+ (( UID == 0 )) || command_to_run+=( sudo )
+
+ while
+ (( $# ))
+ do
+ case "$1" in
+ (update-system)
+ true
+ ;;
+ (rvm)
+ "${command_to_run[@]}" pkg_add bash curl git patch
+ ;;
+ (jruby-head*)
+ "${command_to_run[@]}" pkg_add jdk apache-ant
+ ;;
+ (jruby*)
+ "${command_to_run[@]}" pkg_add jdk
+ ;;
+ (ir*)
+ "${command_to_run[@]}" pkg_add mono
+ ;;
+ (opal)
+ "${command_to_run[@]}" pkg_add node-devel
+ ;;
+ (*)
+ "${command_to_run[@]}" pkg_add gcc readline libxml2 libxslt autoconf automake diffutils make libtool bison
+ ;;
+ esac
+ shift
+ done
+}
+
+requirements_gentoo "$@"

0 comments on commit b07ac0c

Please sign in to comment.