Skip to content

Commit b9108cc

Browse files
committed
release-version.sh: allow overriding the tag
This is useful to create temporary tags for testing before cutting the real release tag.
1 parent 3cc32e0 commit b9108cc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

release-version.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ IMAGEJ_RELEASES_REPOSITORY=$IMAGEJ_BASE_REPOSITORY/releases
1010
IMAGEJ_THIRDPARTY_REPOSITORY=$IMAGEJ_BASE_REPOSITORY/thirdparty
1111

1212
BATCH_MODE=--batch-mode
13-
EXTRA_ARGS=
1413
SKIP_PUSH=
1514
SKIP_DEPLOY=
15+
TAG=
16+
EXTRA_ARGS=
1617
ALT_REPOSITORY=
1718
while test $# -gt 0
1819
do
1920
case "$1" in
2021
--no-batch-mode) BATCH_MODE=;;
2122
--skip-push) SKIP_PUSH=t;;
2223
--skip-deploy) SKIP_DEPLOY=t;;
24+
--tag=*)
25+
TAG="-Dtag=${1#--*=}";;
2326
--extra-arg=*|--extra-args=*)
2427
EXTRA_ARGS="$EXTRA_ARGS ${1#--*=}";;
2528
--alt-repository=imagej-releases)
@@ -61,7 +64,7 @@ test $FETCH_HEAD = "$(git merge-base $FETCH_HEAD $HEAD)" ||
6164
die "'master' is not up-to-date"
6265

6366
# Prepare new release without pushing (requires the release plugin >= 2.1)
64-
mvn $BATCH_MODE release:prepare -DpushChanges=false -Dresume=false \
67+
mvn $BATCH_MODE release:prepare -DpushChanges=false -Dresume=false $TAG \
6568
-DreleaseVersion="$1" "-Darguments=${EXTRA_ARGS# }" &&
6669

6770
# Squash the two commits on the current branch into one

0 commit comments

Comments
 (0)