Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incrementing version number in autoconf/automake projects #79

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Changed
- Invoke autoreconf in automake projects when incrementing version number

## [2.2.0] - 2017-06-05

### Changed
Expand Down Expand Up @@ -64,6 +68,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.0] - 2016-12-22

[Unreleased]: https://github.com/alkuna/omgf/compare/master...dev
[2.2.0]: https://github.com/InternetGuru/omgf/compare/v2.1.2...v2.2.0
[2.1.2]: https://github.com/InternetGuru/omgf/compare/v2.1.1...v2.1.2
[2.1.1]: https://github.com/InternetGuru/omgf/compare/v2.1.0...v2.1.1
Expand Down
1 change: 1 addition & 0 deletions omgf
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,7 @@ function main {
function gf_commit_version {
msg_start "Increment version number to '$major.$minor.$patch'"
echo "$major.$minor.$patch" > "$OMGF_VERSION"
[[ -s configure.ac ]] && autoreconf -f
git commit -am "Increment version number" >/dev/null || return 1
msg_end "$DONE"
}
Expand Down