blob: 8c1b47151c8d8cb9698e087403e38db54e529ae6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
prefix=$2
old_sdk=$prefix/../../2012.5
new_sdk=$prefix/../../0.10
sudo pkgutil --regexp --forget gstreamer*
sudo pkgutil --regexp --forget gtk*
sudo pkgutil --regexp --forget gobject*
sudo pkgutil --regexp --forget base-system*
sudo pkgutil --forget osx-framework
sudo pkgutil --forget snappy
if [ -L "$old_sdk" ]; then
if [ -L "$old_sdk" ]; then
exit 0
else
sudo cp -r "$old_sdk/*" "$new_sdk"
fi
fi
if [ ! -d "$new_sdk" ]; then
sudo mkdir "$new_sdk"
fi
sudo rm -rf "$old_sdk"
sudo ln -s "$new_sdk" "$old_sdk"
|