bumpver

command
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

README

bumpver

bumpver is a go command-line tool that changes semantic version strings in source and doc files. It was created to help with Deis releases.

Build

$ make test build
$ ./bumpver --help
Updates the current semantic version number to a new one in the specified
source and doc files.

Usage:
  bumpver [-f <current>] <version> <files>...

Options:
  -f --from=<current>  An explicit version string to replace. Otherwise, use
                       the first semantic version found in the first file.

Usage

Let's use bumpver to update the deis codebase for a new release, 0.13.3:

$ make -C contrib/bumpver/ test build
$ # update from an explicit (bad) version string
$ ./contrib/bumpver/bumpver -f latest 0.13.3 contrib/coreos/user-data
$ ./contrib/bumpver/bumpver -f 0.13.0-dev 0.13.3 \
    version/version.go \
    client/deis.py \
    client/setup.py \
    deisctl/deis-version \
    controller/deis/__init__.py \
    tests/bin/test-latest.sh
$ # update from the first semver string found
$ # this type of command should now be enough to bump everything
$ ./contrib/bumpver/bumpver 0.14.0 \
    version/version.go \
    client/deis.py \
    client/setup.py \
    deisctl/deis-version \
    contrib/coreos/user-data \
    controller/deis/__init__.py \
    tests/bin/test-latest.sh

Of course, you should always check the changes with git diff before committing anything to version control.

Please add any issues you find with this software to the Deis project.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL