forked from terrychou/iVim
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathget_frameworks.sh
executable file
·31 lines (29 loc) · 958 Bytes
/
get_frameworks.sh
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
#!/bin/bash
IOS_SYSTEM_VER="2.4"
HHROOT="https://github.com/holzschu"
(cd "${PWD}/Frameworks"
# ios_system
echo "Downloading ios_system.framework and associated dylibs"
curl -OL $HHROOT/ios_system/releases/download/v$IOS_SYSTEM_VER/release.tar.gz
( tar -xzf release.tar.gz --strip 1 && rm release.tar.gz ) || { echo "ios_system failed to download"; exit 1; }
)
echo "Downloading header file:"
(cd "${PWD}/vim/src"
curl -OL $HHROOT/ios_system/releases/download/v$IOS_SYSTEM_VER/ios_error.h
)
# We need the sources for Python and Lua, for the headers
# Do not do this is python3_ios and lua_ios are already present
# included by if_lua and if_python.
( # Python_ios
cd "${PWD}/.."
git clone https://github.com/holzschu/python3_ios
cd "python3_ios"
sh ./getPackages.sh
)
( # lua_ios
cd "${PWD}/.."
git clone https://github.com/holzschu/lua_ios
cd "lua_ios"
sh ./get_lua_source.sh
)
echo "All done. Now open iVim.xcodeproj, enter your Apple ID, and compile"