@@ -1,62 +0,0 @@
1−#!/usr/bin/env bash
2−#===============================================================================
3−#
4−# FILE: bump-versions.sh
5−#
6−# USAGE: ./bump-versions.sh
7−#
8−# DESCRIPTION: Bump the versions for all servant packages
9−#
10−# OPTIONS: See usage
11−# REQUIREMENTS: bumper, bash >= 4
12−# CREATED: 11.05.2015 21:36
13−# REVISION: ---
14−#===============================================================================
15−
16−set -o nounset
17−set -o errexit
18−
19−DIR=$( dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ))
20−. "${DIR}/scripts/lib/common.sh"
21−
22−usage () {
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."
27− exit 0
28−}
29−
30−if [ $# -eq 0 ] ; then
31− echo "expecting one or more arguments. Got 0"
32− usage
33−elif [ $# -gt 2 ] ; then
34− echo "expecting one or more arguments"
35− usage
36−fi
37−
38−versions_equal
39−
40−while [ "${1:-unset}" != "unset" ] ; do
41− case "$1" in
42− -h | --help) usage ;;
43− -d | --dry-run) DRY_RUN=true
44− shift ;;
45− 0) if POSITION="none" ; then POSITION=0 ; else usage ; fi
46− shift ;;
47− 1) if POSITION="none" ; then POSITION=1 ; else usage ; fi
48− shift ;;
49− 2) if POSITION="none" ; then POSITION=2 ; else usage ; fi
50− shift ;;
51− 3) if POSITION="none" ; then POSITION=3 ; else usage ; fi
52− shift ;;
53− *) usage ;;
54− esac
55−done
56−
57−if $DRY_RUN ; then
58− echo "Would have bumped position ${POSITION} on these packages:"
59− ( cd "$ROOT" && bumper --dry-run -"$POSITION" $(join , $SOURCES tutorial) )
60−else
61− ( cd "$ROOT" && bumper -"$POSITION" $(join , $SOURCES tutorial) )
62−fi