#!/bin/bash
#
# Update this third-party package from the upstream sources
#

# Exit if anything untoward happens
set -euo pipefail

rm -rf upstream
git clone https://github.com/mrtazz/restclient-cpp upstream
cd upstream
version=$(git describe --tags --always --dirty)
m4 -I m4 -DM4_RESTCLIENT_VERSON="$version" version.h.m4 > include/restclient-cpp/version.h
rm -rf .git .gitignore
rm -rf vendor/gtest-1.7.0
rm -rf docs
