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