update-llpkgc.bash 763 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env bash
  2. # Note: llpkgc *generates* a parser, thus this script requires npm be available
  3. set -e
  4. set -x
  5. shopt -s dotglob
  6. readonly name="llpkgc"
  7. readonly ownership="llpkgc upstream <[email protected]>"
  8. readonly subtree="Utilities/cmllpkgc"
  9. readonly repo="https://gitlab.kitware.com/utils/llpkgc.git"
  10. readonly tag="7958a1de42b9eec04676d547f6fcf5daa425fbcc"
  11. readonly shortlog=false
  12. readonly exact_tree_match=false
  13. readonly paths="
  14. bin
  15. src
  16. *.json
  17. "
  18. extract_source() {
  19. git_archive
  20. npm install
  21. npm run build
  22. mv build/llpkgc/* "${extractdir}/${name}-reduced"
  23. pushd "${extractdir}/${name}-reduced"
  24. rm CMakeLists.txt *.json
  25. rm -rf src bin
  26. echo "* -whitespace" > .gitattributes
  27. popd
  28. }
  29. . "${BASH_SOURCE%/*}/update-third-party.bash"