This script creates a libcoap archive, unpacks it and does an
out-of-tree build and installation afterwards. The environment
variables PLATFORM, TESTS, TLS and DOCS control the build
configuration. Suggested invocation from travis CI is:
PLATFORM=posix TESTS=yes TLS=no DOCS=yes scripts/dist.sh