forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·31 lines (27 loc) · 730 Bytes
/
update.sh
File metadata and controls
executable file
·31 lines (27 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
set -e
set -x
shopt -s dotglob
readonly name="expat"
readonly ownership="Expat Upstream <kwrobot@kitware.com>"
readonly subtree="ThirdParty/$name/vtk$name"
readonly repo="https://gitlab.kitware.com/third-party/expat.git"
readonly tag="for/vtk-old"
readonly paths="
expat/.gitattributes
expat/CMakeLists.txt
expat/COPYING
expat/ConfigureChecks.cmake
expat/README.md
expat/README.kitware.md
expat/expat_config.h.cmake
expat/lib/*.c
expat/lib/*.h
"
extract_source () {
git_archive
# Everything is under an extra expat/ directory; remove it.
mv "$extractdir/$name-reduced/expat/"* "$extractdir/$name-reduced/"
rmdir "$extractdir/$name-reduced/expat"
}
. "${BASH_SOURCE%/*}/../update-common.sh"