forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
executable file
·44 lines (39 loc) · 872 Bytes
/
update.sh
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
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
set -e
set -x
shopt -s dotglob
readonly name="Twisted"
readonly ownership="Twisted Upstream <kwrobot@kitware.com>"
readonly subtree="ThirdParty/$name/vtk$name"
readonly repo="https://gitlab.kitware.com/third-party/twisted.git"
readonly tag="for/vtk"
readonly paths="
NEWS
LICENSE
README.rst
.gitattributes
src/twisted/*.py
src/twisted/_threads
src/twisted/application
src/twisted/cred
src/twisted/internet/*.py
src/twisted/logger
src/twisted/persisted
src/twisted/plugins
src/twisted/protocols
src/twisted/python
src/twisted/runner
src/twisted/scripts
src/twisted/spread
src/twisted/tap
src/twisted/web
"
extract_source () {
# Copy over the files from Git
git_archive
# Remove all `test/` subdirectories.
pushd "$extractdir"
find . -name "test" -type d -exec rm -rf '{}' \;
popd
}
. "${BASH_SOURCE%/*}/../update-common.sh"