Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Scripts/update-llpkgc.bash
5014 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 exact_tree_match=false
16
readonly paths="
17
bin
18
src
19
*.json
20
"
21
22
extract_source() {
23
git_archive
24
npm install
25
npm run build
26
mv build/llpkgc/* "${extractdir}/${name}-reduced"
27
28
pushd "${extractdir}/${name}-reduced"
29
rm CMakeLists.txt *.json
30
rm -rf src bin
31
echo "* -whitespace" > .gitattributes
32
popd
33
}
34
35
. "${BASH_SOURCE%/*}/update-third-party.bash"
36
37