-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupdate-dependencies
executable file
·42 lines (36 loc) · 2.15 KB
/
update-dependencies
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
function carthageUpdate() {
pushd . > /dev/null
cd `dirname $0`
scriptRoot=`pwd`
# not every dependency builds fine for other platforms
carthage update --platform osx --no-use-binaries
popd > /dev/null
}
function waitForKeyPress() {
# It should be visible
echo " ";
echo " ";
echo " ██████ ██████ ███████ ███████ ███████ ";
echo " ██ ██ ██ ██ ██ ██ ██ ";
echo " ██████ ██████ █████ ███████ ███████ ";
echo " ██ ██ ██ ██ ██ ██ ";
echo " ██ ██ ██ ███████ ███████ ███████ ";
echo " ";
echo " ";
echo "███ ███████ ███ ██ ████████ ███████ ██████ ███ ";
echo "██ ██ ████ ██ ██ ██ ██ ██ ██ ";
echo "██ █████ ██ ██ ██ ██ █████ ██████ ██ ";
echo "██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ";
echo "███ ███████ ██ ████ ██ ███████ ██ ██ ███ ";
echo " ";
echo " ";
read
}
function closeTerminal() {
local program=`basename $0`
osascript -e "tell application \"Terminal\" to close (every window whose name contains \"$program\")" & exit
}
carthageUpdate
waitForKeyPress
closeTerminal