-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This works better with tools that want you to pass in the version number, instead of automatically incrementing it based on what's in the file. An example of this is in a Makefile where I want to do four different things with the same version number - it's difficult to get the version number from this program and then pass it all of the places it's needed, it's easier to just pass it in and use everywhere. Updates the successful output to be only the new version number and a newline. Refactors the code to be more modular and adds a new SetInFile method for setting a given version number in a file.
- Loading branch information
1 parent
50edb79
commit 34aa0b0
Showing
3 changed files
with
106 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters