Created
September 22, 2014 17:02
-
-
Save merencia/c1a0f441ddf42cd85762 to your computer and use it in GitHub Desktop.
Install eclipse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Resolving Eclipse package | |
if [ `uname -m` = 'x86_64' ]; then | |
URL="http://eclipse.c3sl.ufpr.br/technology/epp/downloads/release/luna/R/eclipse-jee-luna-R-linux-gtk-x86_64.tar.gz" | |
else | |
URL="http://eclipse.c3sl.ufpr.br/technology/epp/downloads/release/luna/R/eclipse-jee-luna-R-linux-gtk.tar.gz" | |
fi | |
echo "Using $HOME" | |
# echo "Getting Eclipse..." | |
# curl -o ~/eclipse.tar.gz $URL | |
echo "Unpacking..." | |
if tar -xf ~/eclipse.tar.gz --directory=$HOME; then | |
sudo mv ~/eclipse/ /opt/ | |
sudo ln -s /opt/eclipse/eclipse /bin/eclipse | |
fi | |
rm ~/eclipse.tar.gz | |
echo "Installing lombok" | |
sudo curl -o /opt/eclipse/lombok.jar http://projectlombok.org/downloads/lombok.jar | |
sudo java -jar /opt/eclipse/lombok.jar install auto | |
mkdir -p ~/.local/share/applications | |
cat << EOF > ~/.local/share/applications/eclipse.desktop | |
[Desktop Entry] | |
Name=Eclipse Luna | |
Exec=Eclipse | |
MimeType=text/plain; | |
Terminal=false | |
Type=Application | |
Icon=/opt/eclipse/icon.xpm | |
Categories=Utility;TextEditor;Development; | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment