123456789101112131415161718 |
- #!/bin/bash
- set -o errexit -o pipefail
- gimme java
- if [[ "$OS" = "Darwin" ]]; then
- gimme_pkg eclipse-jee
- else
- if ! has eclipse; then
- URL='http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/mars/R/eclipse-jee-mars-R-linux-gtk-x86_64.tar.gz&r=1'
- TMP_FILE="/tmp/gimme.eclipse.mars.tar.gz"
- curl -fSLC- "$URL" -o "$TMP_FILE"
- cd "$HOME"
- tar -xzf "$TMP_FILE"
- rm "$TMP_FILE"
- ln -sfv "$HOME/eclipse/eclipse" "$HOME/bin/eclipse"
- fi
- fi
|