root / asi-http-request-with-pithos / Build Scripts / fetch_ios_ghunit.rb @ be116d22
History | View | Annotate | Download (889 Bytes)
1 |
#!/usr/bin/env ruby
|
---|---|
2 |
|
3 |
# This script fetches a pre-compiled copy of the iOS GHUnit.framework, if one isn't already in the External/GHUnit folder
|
4 |
# This replaces the old system, where GHUnit was included as a git submodule, because:
|
5 |
# a) git submodules confuse people (including me)
|
6 |
# b) GHUnit seems to be tricky to build without warnings
|
7 |
# The pre-compiled frameworks on allseeing-i.com were taken directly from those on the GHUnit downloads page on GitHub
|
8 |
# If you'd rather build GHUnit yourself, simply grab a copy from http://github.com/gabriel/gh-unit and drop your built framework into External/GHUnit
|
9 |
|
10 |
require 'net/http'
|
11 |
if (!File.exists?('External/GHUnit/GHUnitIOS.framework')) |
12 |
`curl -s http://allseeing-i.com/ASIHTTPRequest/GHUnit/GHUnit-IOS.zip > External/GHUnit/GHUnit-IOS.zip`
|
13 |
`unzip External/GHUnit/GHUnit-IOS.zip -d External/GHUnit/ & rm External/GHUnit/GHUnit-IOS.zip`
|
14 |
end
|