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
- Host: GitHub
- URL: https://github.com/andyexeter/bump_version
- Owner: andyexeter
- License: mit
- Created: 2018-09-13T10:38:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-18T12:58:26.000Z (over 5 years ago)
- Last Synced: 2025-04-02T00:22:50.323Z (about 1 year ago)
- Topics: bash-script, bumpversion, shell-script, versioning
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)