#!/usr/bin/env bash

set -e

read os_name os_info <<< `sh ./os_info.sh`

# Install all the basic tools and apps
if [ "$os_name" = "Darwin" ] ; then
    brew update && brew upgrade
    brew bundle --global
    brew linkapps emacs kdiff3
    #brew bundle cleanup --global
    brew cleanup && brew cask cleanup
elif [ "$os_name" = "Linux" ] ; then
    read distro more_info <<<"$os_info"
    if [ "$distro" = "Debian" ] ; then
        sudo apt-get install grc wget git bash-completion -y
        sudo apt-get install fonts-inconsolata -y
        # TODO: update the list
        if [ "`which eclipse`" == "" ]; then
            sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make -y
            sudo apt-get update
            sudo apt-get install ubuntu-make -y
            umake ide eclipse ${HOME}/.local/share/umake/ide/eclipse
        fi
    elif [ "$distro" = "RedHat" ] ; then
        sudo yum -y install grc wget git bash-completion
        sudo yum -y install levien-inconsolata-fonts
        # TODO: update the list
    else
        echo "Error: Un-expected Linux distribution"
        exit 1
    fi
else
    echo "Error: Un-expected OS"
    exit 1
fi

./install_eclipse_plugins.sh

#!/usr/bin/env bash

set -e

read os_name os_info <<< `sh ./os_info.sh`

# Install all the basic tools and apps
if [ "$os_name" = "Darwin" ] ; then
    brew update && brew upgrade
    brew bundle --global
    brew linkapps emacs kdiff3
    #brew bundle cleanup --global
    brew cleanup && brew cask cleanup
elif [ "$os_name" = "Linux" ] ; then
    read distro more_info <<<"$os_info"
    if [ "$distro" = "Debian" ] ; then
        sudo apt-get install grc wget git bash-completion -y
        sudo apt-get install fonts-inconsolata -y
        sudo apt-get install libnotify-bin -y
        # TODO: update the list
        if [ "`which eclipse`" == "" ]; then
            sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make -y
            sudo apt-get update
            sudo apt-get install ubuntu-make -y
            umake ide eclipse ${HOME}/.local/share/umake/ide/eclipse
        fi
    elif [ "$distro" = "RedHat" ] ; then
        sudo yum -y install grc wget git bash-completion
        sudo yum -y install levien-inconsolata-fonts
        sudo yum -y install libnotify
        # TODO: update the list
    else
        echo "Error: Un-expected Linux distribution"
        exit 1
    fi
else
    echo "Error: Un-expected OS"
    exit 1
fi

./install_eclipse_plugins.sh

Support for desktop notifications(alias alert) in Linux - libnotify
Support for desktop notifications(alias alert) in Linux - libnotify

Change-Id: Id0817cea916d6780f3e5944d3a1265236b03e428
