@@ -1,62 +0,0 @@
2−#===============================================================================
4−# FILE: bump-versions.sh
6−# USAGE: ./bump-versions.sh
8−# DESCRIPTION: Bump the versions for all servant packages
11−# REQUIREMENTS: bumper, bash >= 4
12−# CREATED: 11.05.2015 21:36
14−#===============================================================================
19−DIR=$( dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ))
20−. "${DIR}/scripts/lib/common.sh"
23− echo " bump-versions.sh <POSITION> [-d|--dry-run]"
24− echo " | [-h|--help]"
25− echo " Bumps the specified positional version of all servant packages."
26− echo " POSITION is a number between 0 and 3, inclusive."
30−if [ $# -eq 0 ] ; then
31− echo "expecting one or more arguments. Got 0"
33−elif [ $# -gt 2 ] ; then
34− echo "expecting one or more arguments"
40−while [ "${1:-unset}" != "unset" ] ; do
42− -h | --help) usage ;;
43− -d | --dry-run) DRY_RUN=true
45− 0) if POSITION="none" ; then POSITION=0 ; else usage ; fi
47− 1) if POSITION="none" ; then POSITION=1 ; else usage ; fi
49− 2) if POSITION="none" ; then POSITION=2 ; else usage ; fi
51− 3) if POSITION="none" ; then POSITION=3 ; else usage ; fi
58− echo "Would have bumped position ${POSITION} on these packages:"
59− ( cd "$ROOT" && bumper --dry-run -"$POSITION" $(join , $SOURCES tutorial) )
61− ( cd "$ROOT" && bumper -"$POSITION" $(join , $SOURCES tutorial) )