This repository was archived by the owner on Sep 10, 2024. It is now read-only.
forked from InsightSoftwareConsortium/ITKPythonPackage
-
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.46 KB
/
Copy pathupdate_python_version.sh
File metadata and controls
executable file
·50 lines (41 loc) · 1.46 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 ITK used by ITKPythonPackage. It
# is run nightly by a system with push permissions to the
#
# git@github.com:InsightSoftwareConsortium/ITKPythonPackage.git
#
# repository.
set -x -e
workdir=/tmp/
cd $workdir
if test ! -d ITKNightlyMaster; then
git clone --branch nightly-master \
https://github.com/InsightSoftwareConsortium/ITK.git ITKNightlyMaster
fi
pushd ITKNightlyMaster/
git checkout nightly-master
git fetch
git reset --hard origin/nightly-master
ITK_SHA=$(git rev-parse --short HEAD)
popd
if test ! -d ITKPythonPackage; then
git clone --branch master \
git@github.com:InsightSoftwareConsortium/ITKPythonPackage.git ITKPythonPackage
fi
pushd ITKPythonPackage/
git checkout master
git fetch
git reset --hard origin/master
git config user.name 'Kitware Robot'
git config user.email 'kwrobot@kitware.com'
ITKPythonPackage_SHA=$(git rev-parse --short HEAD)
./scripts/update_python_version.py ../ITKNightlyMaster
git add -- CMakeLists.txt itkVersion.py
git commit -m "ITK nightly version update
This commit updates:
(1) SHA used in CMakeLists.txt to checkout ITK sources
(InsightSoftwareConsortium/ITK@${ITK_SHA})
(2) VERSION variable set in itkVersion.py
It was automatically generated by the script ``update_python_version.sh`` [1]
[1] https://github.com/InsightSoftwareConsortium/ITKPythonPackage/blob/${ITKPythonPackage_SHA}/scripts/update_python_version.py"
git push origin master