Skip to content

Commit fc46ec6

Browse files
committed
ENH: Update MINC UpdateFromUpstream.sh to use update-third-party.bash
1 parent bf36ae4 commit fc46ec6

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

Modules/ThirdParty/MINC/UpdateFromUpstream.sh

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
#!/usr/bin/env bash
22

3-
thirdparty_module_name='MINC'
3+
set -e
4+
set -x
5+
shopt -s dotglob
46

5-
upstream_git_url='https://github.com/BIC-MNI/libminc.git'
6-
upstream_git_branch='develop'
7-
8-
snapshot_author_name='Vladimir S. FONOV'
9-
snapshot_author_email='vladimir.fonov@gmail.com'
10-
11-
snapshot_redact_cmd='chmod u-x volume_io/Geometry/tensors.c'
12-
snapshot_relative_path='src/libminc'
13-
snapshot_paths='
7+
readonly name="MINC"
8+
readonly ownership="Vladimir S. FONOV <vladimir.fonov@gmail.com>"
9+
readonly subtree="Modules/ThirdParty/MINC/src/libminc"
10+
readonly repo="https://github.com/BIC-MNI/libminc.git"
11+
readonly tag="develop"
12+
readonly paths="
1413
./ChangeLog
1514
./volume_io
1615
./libsrc
@@ -85,7 +84,16 @@ snapshot_paths='
8584
./INSTALL
8685
./config.h.cmake
8786
./README
88-
./check_clock_gettime.c'
87+
./check_clock_gettime.c
88+
"
89+
90+
91+
extract_source () {
92+
git_archive
93+
pushd "${extractdir}/${name}-reduced"
94+
git update-index --chmod=+x 'src/libminc/libsrc/Make.com'
95+
# chmod u-x volume_io/Geometry/tensors.c
96+
popd
97+
}
8998

90-
source "${BASH_SOURCE%/*}/../../../Utilities/Maintenance/UpdateThirdPartyFromUpstream.sh"
91-
update_from_upstream
99+
. "${BASH_SOURCE%/*}/../../../Utilities/Maintenance/update-third-party.bash"

0 commit comments

Comments
 (0)