Statistics
| Branch: | Revision:

root / asi-http-request-with-pithos / Build Scripts / fetch_mac_ghunit.rb @ be116d22

History | View | Annotate | Download (886 Bytes)

1
#!/usr/bin/env ruby
2

    
3
# This script fetches a pre-compiled copy of the Mac 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/GHUnit.framework'))
12
        `curl -s http://allseeing-i.com/ASIHTTPRequest/GHUnit/GHUnit-Mac.zip > External/GHUnit/GHUnit-Mac.zip`
13
          `unzip External/GHUnit/GHUnit-Mac.zip -d External/GHUnit/ & rm External/GHUnit/GHUnit-Mac.zip`
14
end