Commit c566fccc authored by Drew's avatar Drew

Remove various swift-local hacks

Various hacks we required to get dispatch building together are no
longer required in snapshot swift-DEVELOPMENT-SNAPSHOT-2016-02-25-af
parent f67424f6
#!/bin/bash #!/bin/bash
set -e
id=$(docker create swift-tmp) id=$(docker create swift-tmp)
docker cp $id:/tmp/swift.tar.gz . docker cp $id:/tmp/swift.tar.gz .
rm -rf fakeroot rm -rf fakeroot
mkdir -p fakeroot/usr/local mkdir -p fakeroot/usr/local
tar xf swift.tar.gz -C fakeroot/usr/local --strip-components 1 tar xf swift.tar.gz -C fakeroot/usr/local --strip-components 1
rm -rf swift.tar.gz
#patch silly dispatch
mkdir fakeroot/usr/local/include/dispatch/haxx
mv fakeroot/usr/local/include/dispatch/Dispatch.swift* fakeroot/usr/local/include/dispatch/haxx/
mv fakeroot/usr/local/include/dispatch/module.map fakeroot/usr/local/include/dispatch/haxx/
#we need to file a ⛏ about this silly workaround at some point
#but we have to wait for ⛏729 to get resolved first
#since the repro steps will change
sed -i '' "s+/tmp/install///usr/include/dispatch/dispatch.h+/usr/local/include/dispatch/dispatch.h+" fakeroot/usr/local/include/dispatch/haxx/module.map
tar czf swift-local.tar.gz -C fakeroot . tar czf swift-local.tar.gz -C fakeroot .
rm -rf fakeroot rm -rf fakeroot
\ No newline at end of file rm -rf swift.tar.gz
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment