eclipse-jee 477 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -o errexit -o pipefail
  3. gimme java
  4. if [[ "$OS" = "Darwin" ]]; then
  5. gimme_pkg eclipse-jee
  6. else
  7. if ! has eclipse; then
  8. 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'
  9. TMP_FILE="/tmp/gimme.eclipse.mars.tar.gz"
  10. curl -fSLC- "$URL" -o "$TMP_FILE"
  11. cd "$HOME"
  12. tar -xzf "$TMP_FILE"
  13. rm "$TMP_FILE"
  14. ln -sfv "$HOME/eclipse/eclipse" "$HOME/bin/eclipse"
  15. fi
  16. fi