bumpver

 README.md

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 \
    deisctl/deisctl.go \
    deisctl/README.md \
    controller/deis/__init__.py \
    README.md
$ # 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 \
    deisctl/deisctl.go \
    deisctl/README.md \
    contrib/coreos/user-data.example \
    controller/deis/__init__.py \
    README.md

Of course, you should always check the changes with git diff before committing anything to version control. You can also check the Release Checklist for the most up-to-date list of files to bump.

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值