diff options
Diffstat (limited to 'base-install.sh')
-rwxr-xr-x | base-install.sh | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/base-install.sh b/base-install.sh index f6d8b4d..1d7d2c5 100755 --- a/base-install.sh +++ b/base-install.sh @@ -1,10 +1,10 @@ #!/bin/sh -# -# Installs base packages for Ubuntu + +# Installs required packages on Debian and compatible systems. # Author: Andreas Maunz -# -# Your installed packages are safe and will not be updated. -# A Java configuration is created and included in your '$OT_UI_CONF'. + +# NOTE: Your installed packages are safe and will not be updated. +# Java configuration is included in '$OT_UI_CONF'. . ./utils.sh DIR=`pwd` @@ -15,16 +15,13 @@ if [ "$(id -u)" = "0" ]; then fi # Utils -utils="aptitude git apt-cache dpkg" -for u in $utils; do - eval `echo $u | tr "[:lower:]" "[:upper:]" | tr "-" "_"`=`which $u` || (echo "'$u' missing. Install '$u' first." 1>&2 && exit 1) -done +check_utils "aptitude git apt-cache dpkg" # Init main file touch "$OT_UI_CONF" # Pkgs -packs="binutils build-essential cmake curl gnuplot hostname libcurl4-openssl-dev libgsl0-dev libopenbabel4 libopenbabel-dev libreadline6-dev libreadline-dev libsqlite3-dev libssl-dev libyaml-dev libxml2-dev libxslt1-dev lsb-release openjdk-6-jdk psmisc pwgen raptor-utils r-base r-base-core r-base-dev sqlite3 udev wget xsltproc zlib1g-dev" +packs="binutils build-essential cmake curl gnuplot hostname libcurl4-openssl-dev libgsl0-dev libopenbabel4 libopenbabel-dev libraptor1-dev libreadline6-dev libreadline-dev libsqlite3-dev libssl-dev libyaml-dev libxml2-dev libxslt1-dev lsb-release openjdk-6-jdk psmisc pwgen raptor-utils r-base r-base-core r-base-dev sqlite3 udev wget xsltproc zlib1g-dev" echo echo "Base Packages:" @@ -86,21 +83,10 @@ if [ ! -f $JAVA_CONF ]; then echo 'if echo "$PATH" | grep -v '$OT_JAVA_HOME/bin'>/dev/null 2>&1; then export PATH='$OT_JAVA_HOME/bin':"$PATH"; fi' >> "$JAVA_CONF" echo 'if ! [ -d "$JAVA_HOME" ]; then echo "$0: JAVA_HOME is not a directory!"; fi' >> "$JAVA_CONF" - echo "Java configuration has been stored in '$JAVA_CONF'." if ! grep "$JAVA_CONF" $OT_UI_CONF >/dev/null 2>&1; then echo '. '$JAVA_CONF >> $OT_UI_CONF fi fi -if [ ! -d ~/.rbenv ]; then - cmd="$GIT clone git://github.com/sstephenson/rbenv.git ~/.rbenv" && run_cmd "$cmd" "rbenv" -else - echo "'rbenv' already installed. Leaving untouched." -fi - -if ! grep "rbenv" $OT_UI_CONF >/dev/null 2>&1 ; then - echo 'if ! echo "$PATH" | grep "$HOME/.rbenv/bin">/dev/null 2>&1; then export PATH="$HOME/.rbenv/bin:$PATH"; eval "$(rbenv init -)"; fi' >> $OT_UI_CONF -fi - cd "$DIR" |