main: add a --version argument
This adds a `osbuild --version` command that prints the current osbuild version in use. Allows users to confirm their osbuild is up to date enough to use newer features.
This commit is contained in:
parent
ace6c3524b
commit
5c25f17ab7
3 changed files with 9 additions and 1 deletions
1
Makefile
1
Makefile
|
|
@ -301,3 +301,4 @@ bump-version:
|
|||
sed -i "s|Version:\(\s*\)$(VERSION)|Version:\1$(NEXT_VERSION)|" osbuild.spec
|
||||
sed -i "s|Release:\(\s*\)[[:digit:]]\+|Release:\11|" osbuild.spec
|
||||
sed -i "s|version=\"$(VERSION)\"|version=\"$(NEXT_VERSION)\"|" setup.py
|
||||
sed -i "s|__version__ = \"$(VERSION)\"|__version__ = \"$(NEXT_VERSION)\"|" osbuild/__init__.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue