Skip to content

Commit

Permalink
ENH: Update MINC UpdateFromUpstream.sh to use update-third-party.bash
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Jan 2, 2022
1 parent bf36ae4 commit fc46ec6
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions Modules/ThirdParty/MINC/UpdateFromUpstream.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
#!/usr/bin/env bash

thirdparty_module_name='MINC'
set -e
set -x
shopt -s dotglob

upstream_git_url='https://github.com/BIC-MNI/libminc.git'
upstream_git_branch='develop'

snapshot_author_name='Vladimir S. FONOV'
snapshot_author_email='vladimir.fonov@gmail.com'

snapshot_redact_cmd='chmod u-x volume_io/Geometry/tensors.c'
snapshot_relative_path='src/libminc'
snapshot_paths='
readonly name="MINC"
readonly ownership="Vladimir S. FONOV <vladimir.fonov@gmail.com>"
readonly subtree="Modules/ThirdParty/MINC/src/libminc"
readonly repo="https://github.com/BIC-MNI/libminc.git"
readonly tag="develop"
readonly paths="
./ChangeLog
./volume_io
./libsrc
Expand Down Expand Up @@ -85,7 +84,16 @@ snapshot_paths='
./INSTALL
./config.h.cmake
./README
./check_clock_gettime.c'
./check_clock_gettime.c
"


extract_source () {
git_archive
pushd "${extractdir}/${name}-reduced"
git update-index --chmod=+x 'src/libminc/libsrc/Make.com'
# chmod u-x volume_io/Geometry/tensors.c
popd
}

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

0 comments on commit fc46ec6

Please sign in to comment.