#!/bin/sh

set -ex

rm -rf examples/GoHttpLib/ffi examples/GoHttpLib/plicease-gohttplib-*
mkdir -p examples/GoHttpLib
cd examples/GoHttpLib
curl -L https://github.com/plicease/gohttplib/tarball/master | tar zxvf -
mv plicease-gohttplib-* ffi
cd ffi
rm -rf Makefile examples
cp ../../Awesome-FFI/ffi/awesome.fbx gohttplib.fbx

cat > README <<EOF
This Go module is based on the blog entry here:
https://blog.heroku.com/see_python_see_python_go_go_python_go

Original git repository:
https://github.com/shazow/gohttplib

Our fork:
https://github.com/plicease/gohttplib
EOF
