Created
July 26, 2013 13:32
-
-
Save elsewhat/6088867 to your computer and use it in GitHub Desktop.
Get latest SAPUI5 for eclipse update site
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/bash | |
echo "1. Download the main file from the eclipse update site" | |
wget --no-check-certificate https://tools.hana.ondemand.com/juno/content.jar | |
echo "2. Unzip the content.jar to content.xml (and delete content.jar)" | |
unzip content.jar | |
rm content.jar | |
echo "3. Generate urls for the components to fetch com.sap.ui5" | |
# url structure based on http://eclipse.org/equinox/p2/repository_packaging.html | |
grep "<unit" content.xml | grep com.sap.ui5 | awk -F\' '{print "https://tools.hana.ondemand.com/juno/plugins/" $2 "_" $4 ".jar"}' > tmp_sapui5_component_urls.txt | |
echo "4. Download all the urls" | |
cat tmp_sapui5_component_urls.txt | xargs wget --no-check-certificate | |
echo "5. Unzip all the individual files into separate folders" | |
for jar in *.jar; do dirname=$jar"_unzip"; unzip -q $jar -d $dirname; done | |
echo "6. Unzip everything in one common folder" | |
unzip -q -o '*.jar' -d sapui5_full |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment