mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
Add update script for optionparser third party library
This commit is contained in:
parent
79ca830600
commit
2c10b57ced
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -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
|
||||
|
25
vtkm/thirdparty/optionparser/update.sh
vendored
Executable file
25
vtkm/thirdparty/optionparser/update.sh
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
#!/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"
|
Loading…
Reference in New Issue
Block a user