build: make bump-version keep whitespace
Rather than always converting the whitespace to an hard-coded tab, use reflective expressions to keep them unchanged.
This commit is contained in:
parent
d379cc1a6f
commit
c19175f905
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -54,6 +54,6 @@ vagrant-test-keep-running: check-working-directory copy-rpms-to-test
|
|||
$(MAKE) -C test run-tests-remotely
|
||||
|
||||
bump-version:
|
||||
sed -i "s|Version:\s*$(VERSION)|Version:\\t$(NEXT_VERSION)|" osbuild.spec
|
||||
sed -i "s|Release:\s*[[:digit:]]\+|Release:\\t1|" osbuild.spec
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue