summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrii Kroitor <an.kroitor@samsung.com>2016-10-06 12:41:07 +0300
committerAndrii Kroitor <an.kroitor@samsung.com>2016-10-06 12:41:07 +0300
commit5a28e3acffc4addca9a891357d40253224eadef3 (patch)
tree8dcd350fd7e449c75849a9783b33867a9daba5cb
parentc82351efb912332742c06ed7533f46e12a8bfb90 (diff)
update setup_deps.sh
- removing exising link - skipping commented out downloads - updated output
-rwxr-xr-xsetup_deps.sh33
1 files changed, 21 insertions, 12 deletions
diff --git a/setup_deps.sh b/setup_deps.sh
index de044d8..5440bc3 100755
--- a/setup_deps.sh
+++ b/setup_deps.sh
@@ -3,29 +3,38 @@ set -e
3LIST="env_config/win_builds_64.list" 3LIST="env_config/win_builds_64.list"
4BASE_URL="http://win-builds.org/1.5.0/packages/windows_64/" 4BASE_URL="http://win-builds.org/1.5.0/packages/windows_64/"
5 5
6echo "Creating links..." 6if [[ -f/opt/windows_64 && -L /opt/windows_64 ]] ;
7then
8 echo "Removing old link /opt/windows_64"
9 sudo rm /opt/windows_64
10fi
11echo "Creating new link /opt/windows_64 -> $PWD/opt/windows_64"
7sudo ln -s $PWD/opt/windows_64 /opt/ 12sudo ln -s $PWD/opt/windows_64 /opt/
8echo "Creating links... done" 13echo ""
9 14
10echo "Downloading packages into download..." 15echo "Downloading packages into ./download/"
11mkdir -p download 16mkdir -p download
12while read pkg; do 17while read pkg; do
13 if [ ! -f download/$pkg ]; then 18 if [[ ! ${pkg:0:1} == "#" ]] ;
14 wget $BASE_URL$pkg -P download -nv 19 then
20 if [ ! -f download/$pkg ]; then
21 wget $BASE_URL$pkg -P download -q
22 fi
23 echo "[+] $pkg"
15 fi 24 fi
16done < $LIST 25done < $LIST
17echo "Downloading packages... done" 26echo ""
18 27
19echo "Unpacking packages into opt..." 28echo "Unpacking packages into ./opt/"
20rm -rf opt 29rm -rf opt
21mkdir -p opt 30mkdir -p opt
22while read pkg; do 31while read pkg; do
23if [[ ${pkg:0:1} == "#" ]] ; 32if [[ ! ${pkg:0:1} == "#" ]] ;
24then 33then
25 echo "Skipping $pkg"
26else
27 echo "Extraction $pkg"
28 tar -xf download/$pkg -C opt 34 tar -xf download/$pkg -C opt
35 echo "[+] $pkg"
29fi 36fi
30done < $LIST 37done < $LIST
31echo "Unpacking packages... done" 38echo ""
39
40echo "Setup finished"