Skip to content

Instantly share code, notes, and snippets.

@basilfx
Created March 11, 2016 07:52
Show Gist options
  • Save basilfx/d44d32ca31f1e7b92683 to your computer and use it in GitHub Desktop.
Save basilfx/d44d32ca31f1e7b92683 to your computer and use it in GitHub Desktop.
Eclipse with CDT + ARM plugin
#!/bin/bash
wget -O "/tmp/eclipse.tar.gz" "http://ftp.snt.utwente.nl/pub/software/eclipse//technology/epp/downloads/release/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz"
wget -O "/tmp/cdt-plugin.zip" "http://ftp.snt.utwente.nl/pub/software/eclipse//tools/cdt/releases/8.8.1/cdt-8.8.1.zip"
wget -O "/tmp/arm-plugin.zip" "https://github.com/gnuarmeclipse/plug-ins/releases/download/v2.11.3-201602101653/ilg.gnuarmeclipse.repository-2.11.3-201602101653.zip"
tar xvf "/tmp/eclipse.tar.gz" -C "/opt"
unzip "/tmp/cdt-plugin.zip" -d "/tmp/cdt-plugin"
unzip "/tmp/arm-plugin.zip" -d "/tmp/arm-plugin"
(
cd "/tmp/cdt-plugin/features"
find -name '*.jar' -exec sh -c 'unzip -d "${1%.*}" "$1"' _ {} \;
rm *.jar
)
(
cd "/tmp/arm-plugin/features"
find -name '*.jar' -exec sh -c 'unzip -d "${1%.*}" "$1"' _ {} \;
rm *.jar
)
mv "/tmp/cdt-plugin/plugins/"* "/opt/eclipse/plugins"
mv "/tmp/arm-plugin/plugins/"* "/opt/eclipse/plugins"
mv "/tmp/cdt-plugin/features/"* "/opt/eclipse/features"
mv "/tmp/arm-plugin/features/"* "/opt/eclipse/features"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment