forked from KitwareMedical/VTKPythonPackage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_python_version.sh
More file actions
executable file
·50 lines (41 loc) · 1.36 KB
/
update_python_version.sh
File metadata and controls
executable file
·50 lines (41 loc) · 1.36 KB
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
45
46
47
48
49
50
#!/usr/bin/env bash
# This script is use to update the version of VTK used by VTKPythonPackage. It
# is run nightly by a system with push permissions to the
#
# [email protected]:jcfr/VTKPythonPackage.git
#
# repository.
set -x -e
workdir=/tmp/
cd $workdir
if test ! -d VTKNightlyMaster; then
git clone --branch nightly-master \
https://github.com/kitware/VTK.git VTKNightlyMaster
fi
pushd VTKNightlyMaster/
git checkout nightly-master
git fetch
git reset --hard origin/nightly-master
VTK_SHA=$(git rev-parse --short HEAD)
popd
if test ! -d VTKPythonPackage; then
git clone --branch master \
[email protected]:jcfr/VTKPythonPackage.git VTKPythonPackage
fi
pushd VTKPythonPackage/
git checkout master
git fetch
git reset --hard origin/master
git config user.name 'Kitware Robot'
git config user.email '[email protected]'
VTKPythonPackage_SHA=$(git rev-parse --short HEAD)
./scripts/update_python_version.py ../VTKNightlyMaster
git add -- CMakeLists.txt vtkVersion.py
git commit -m "VTK nightly version update
This commit updates:
(1) SHA used in CMakeLists.txt to checkout VTK sources
(kitware/VTK@${VTK_SHA})
(2) VERSION variable set in vtkVersion.py
It was automatically generated by the script ``update_python_version.sh`` [1]
[1] https://github.com/jcfr/VTKPythonPackage/blob/${VTKPythonPackage_SHA}/scripts/update_python_version.py"
git push origin master