An open API service indexing awesome lists of open source software.

https://github.com/andyexeter/bump_version

Bash script to increment version numbers in multiple files
https://github.com/andyexeter/bump_version

bash-script bumpversion shell-script versioning

Last synced: 10 months ago
JSON representation

Bash script to increment version numbers in multiple files

Awesome Lists containing this project

README

          

Bash script to increment version numbers in multiple files.

The script assumes the existence of a `package.json` file so should be used for JavaScript packages.

Initially a [Gist](https://gist.github.com/andyexeter/da932c9644d832e3be6706d20d539ff7) I had created but has been
converted to a full repo so it can be cloned and used as a submodule for different projects.

## Installation

Copy `bump_files.sh.dist` to `bump_files.sh` and edit files to bump in the newly created file.

## Usage

Increment a semver version part by one:

```
$ ./bump_version.sh
```

Fine grained control:

```
$ ./bump_version.sh
```

## Hooks

Add scripts to the hooks/prebump and hooks/postbump directories to have them executed before and after the version bump, respectively.
Hook scripts must have a .hook extension.

## License

Released under the [MIT license](LICENSE)