Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
simleo committed Oct 15, 2021
2 parents ea2995c + f52afa2 commit 77fd0ae
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
6 changes: 3 additions & 3 deletions settings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ ECVL_REVISION=95e7f9b
# PyECVL
PYECVL_REPOSITORY=https://github.com/deephealthproject/pyecvl.git
PYECVL_BRANCH=master
PYECVL_REVISION=d041fbc
PYECVL_REVISION=3fb256a

# EDDL repository
EDDL_REPOSITORY=https://github.com/deephealthproject/eddl.git
EDDL_BRANCH=master
EDDL_REVISION=77451e18
EDDL_REVISION=e6de5aaf

# PyEDDL repository
PYEDDL_REPOSITORY=https://github.com/deephealthproject/pyeddl.git
PYEDDL_BRANCH=master
PYEDDL_REVISION=1e82e5c
PYEDDL_REVISION=8a44a1b
28 changes: 28 additions & 0 deletions update_rev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash

# Assumes pyecvl repo checked out along with its submodules (recursively) and
# pointing at the relevant pyecvl revision

set -euo pipefail
this="${BASH_SOURCE-$0}"
this_dir=$(cd -P -- "$(dirname -- "${this}")" && pwd -P)

die() {
echo $1 1>&2
exit 1
}

nargs=1
if [ $# -ne ${nargs} ]; then
die "Usage: $0 PYECVL_REPO_DIR"
fi
pyecvl_repo=$1

PYECVL_REVISION=$(git -C "${pyecvl_repo}" rev-parse --short HEAD)
ECVL_REVISION=$(git -C "${pyecvl_repo}"/third_party/ecvl rev-parse --short HEAD)
PYEDDL_REVISION=$(git -C "${pyecvl_repo}"/third_party/pyeddl rev-parse --short HEAD)
EDDL_REVISION=$(git -C "${pyecvl_repo}"/third_party/pyeddl/third_party/eddl rev-parse --short HEAD)

for rev in PYECVL_REVISION ECVL_REVISION PYEDDL_REVISION EDDL_REVISION; do
sed -i "s/^${rev}=.\+/${rev}=${!rev}/" "${this_dir}"/settings.conf
done

0 comments on commit 77fd0ae

Please sign in to comment.