Commit 2c10b57c authored by Kenneth Moreland's avatar Kenneth Moreland

Add update script for optionparser third party library

parent 79ca8306
......@@ -15,3 +15,4 @@ data/* filter=lfs diff=lfs merge=lfs -text
*.txt whitespace=tab-in-indent
vtkm/thirdparty/diy/vtkmdiy/** -format.clang-format -whitespace
vtkm/thirdparty/optionparser/vtkmoptionparser/** -format.clang-format -whitespace
#!/usr/bin/env bash
set -e
set -x
shopt -s dotglob
readonly name="optionparser"
readonly ownership="Lean Mean C++ Option Parser Upstream <kwrobot@kitware.com>"
readonly subtree="vtkm/thirdparty/$name/vtkm$name"
readonly repo="https://gitlab.kitware.com/third-party/$name.git"
readonly tag="for/vtk-m"
readonly paths="
src/optionparser.h
"
extract_source () {
git_archive
# The archive has sources in a src directory, but it is a header-only
# library. Just put the headers in the base directory for easier include.
mv "${extractdir}/${name}-reduced/src"/* "${extractdir}/${name}-reduced"
rmdir "${extractdir}/${name}-reduced/src"
}
. "${BASH_SOURCE%/*}/../update-common.sh"
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