Sha256: 299b35349e08690afe87f8ab25034d139547edab528dcef2b205e2bd78d96a03

Contents?: true

Size: 685 Bytes

Versions: 24

Compression:

Stored size: 685 Bytes

Contents

#!/bin/bash

#/ NAME
#/     bump -- increments a semver in a file or in git tags
#/
#/ SYNOPSIS
#/     bump [major|minor|patch]
#/     bump 1.2.3
#/     bump
#/       without arguments is equivalent to 'bump patch'

# figure out the project root under which bin, lib live
shome="$(unset CDPATH; cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"

# load a jason bourne library
source "$shome/libexec/_jason"

# parse the command-line
DEFINE_boolean 'dirty' "$FLAGS_FALSE" 'force bumping in unclean work area' 'f'

# entry point
function main {
  require 'bump'

  if [[ "$#" = 0 ]]; then
    set -- patch
  fi

  bump_version "$FLAGS_dirty" "$@"
}

require sub "$BASH_SOURCE" "$@"

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
tvd-tvdinner-0.0.13 cookbooks/tvdinner/files/default/jasonx/bump
tvd-tvdinner-0.0.12 cookbooks/tvdinner/files/default/jasonx/bump
tvd-tvdinner-0.0.11 cookbooks/tvdinner/files/default/jasonx/bump
tvd-tvdinner-0.0.9 cookbooks/tvdinner/files/default/jasonx/bump