#!/usr/bin/env bash

set -e
set -x
shopt -s dotglob

readonly name="cli11"
readonly ownership="CLI11 Upstream <kwrobot@kitware.com>"
readonly subtree="ThirdParty/$name/vtk$name"
readonly repo="https://gitlab.kitware.com/third-party/cli11.git"
readonly tag="for/vtk-20241208-2.4.2"
readonly paths="
include/CLI/*.hpp
include/CLI/impl/*.hpp
LICENSE
README.md
README.kitware.md
CMakeLists.vtk.txt
"

extract_source () {
    git_archive
    pushd "$extractdir/$name-reduced"
    mv -v include/* .
    mv -v CMakeLists.vtk.txt CMakeLists.txt
    popd
}

. "${BASH_SOURCE%/*}/../update-common.sh"
