From 91f7ef51ed56cd01e17e4b1cc6a695616edc605d Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Mon, 27 Mar 2017 02:10:47 +0200 Subject: [PATCH] add get-adt25 --- README.md | 4 +++- wynurz.sh | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ed71a71..833c16d 100644 --- a/README.md +++ b/README.md @@ -82,4 +82,6 @@ Przyjmuje jeden argument. DostÄpne to: * User: postgres * HasĹo: postgres * PoĹÄ czenia: TCP z dowolnego adresu - \ No newline at end of file +* **get-adt25** - pobierz Android Development Tools r25 i wypakuj do /home/vagrant + * istnieÄ bÄdzie katalog _/home/vagrant/tools_ + * zmienne Ĺrodowiskowe nie bÄdÄ zmienione diff --git a/wynurz.sh b/wynurz.sh index 8e43788..6fa1b3f 100644 --- a/wynurz.sh +++ b/wynurz.sh @@ -30,6 +30,17 @@ if [ $1 == "node5" ]; then apt-get install -y nodejs fi +if [ $1 == "get-adt25" ]; then + cd /home/vagrant + if [ -e "/wynurz-utils/http://dev.dms-serwis.com.pl/misc/tools_r25.2.3-linux.zip" ]; then + ln -s /wynurz-utils/http://dev.dms-serwis.com.pl/misc/tools_r25.2.3-linux.zip /home/vagrant/http://dev.dms-serwis.com.pl/misc/tools_r25.2.3-linux.zip + else + wget -nv http://dev.dms-serwis.com.pl/misc/jdk-8u121-linux-x64.tar.gz + fi; + unzip tools_r25.2.3-linux.zip + rm -f tools_r25.2.3-linux.zip +fi + if [ $1 == "jdk" ]; then cd /home/vagrant if [ -e "/wynurz-utils/jdk-8u121-linux-x64.tar.gz" ]; then -- GitLab