update-llpkgc.bash 731 B

12345678910111213141516171819202122232425262728293031323334
  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 paths="
  13. bin
  14. src
  15. *.json
  16. "
  17. extract_source() {
  18. git_archive
  19. npm install
  20. npm run build
  21. mv build/llpkgc/* "${extractdir}/${name}-reduced"
  22. pushd "${extractdir}/${name}-reduced"
  23. rm CMakeLists.txt *.json
  24. rm -rf src bin
  25. echo "* -whitespace" > .gitattributes
  26. popd
  27. }
  28. . "${BASH_SOURCE%/*}/update-third-party.bash"