update-kwiml.bash 648 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. set -e
  3. set -x
  4. shopt -s dotglob
  5. readonly name="KWIML"
  6. readonly ownership="KWIML Upstream <[email protected]>"
  7. readonly subtree="Utilities/KWIML"
  8. readonly repo="https://gitlab.kitware.com/utils/kwiml.git"
  9. readonly tag="master" # When updating, sync KWIML_VERSION below!
  10. readonly shortlog=true
  11. readonly exact_tree_match=false
  12. readonly paths="
  13. "
  14. extract_source () {
  15. git_archive
  16. pushd "${extractdir}/${name}-reduced"
  17. cp src/version.h.in include/kwiml/version.h
  18. sed -i 's/@KWIML_VERSION@/1.0.0/;s/@KWIML_VERSION_DECIMAL@/1000000/' include/kwiml/version.h
  19. popd
  20. }
  21. . "${BASH_SOURCE%/*}/update-third-party.bash"