Skip to content

Instantly share code, notes, and snippets.

@scottcagno
Created March 12, 2014 17:54
Show Gist options
  • Select an option

  • Save scottcagno/9512379 to your computer and use it in GitHub Desktop.

Select an option

Save scottcagno/9512379 to your computer and use it in GitHub Desktop.
spring source installer
#!/bin/bash
sudo echo "Need to be root, please authenticate..."
echo "Downloading spring source..."
curl -o sts.tar.gz http://download.springsource.com/release/STS/3.4.0/dist/e4.3/spring-tool-suite-3.4.0.RELEASE-e4.3.1-linux-gtk-x86_64.tar.gz
echo "Extracting..."
tar -xf sts*.tar.gz
echo "Staging..."
sudo mv springsource /opt
echo "Creating symbolic links..."
sudo ln -s /opt/springsource/sts*/STS /usr/local/bin/sts
if [[ -z `tail -n 10 ~/.bashrc | awk '{print $2}' | awk -F= '{print $1}' | grep spring` ]]; then
echo "Modifying updating bashrc..."
sudo echo "alias spring='/usr/local/bin/sts'" >> ~/.bashrc
. ~/.bashrc
fi
echo "Cleaning up..."
rm sts*.tar.gz
echo -e "Done.\n**You may now launch spring by typing 'sts', or 'spring'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment