File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -756,12 +756,13 @@ clean: obsclean
756
756
757
757
# See doc/contribute-to-core-lightning/contributor-workflow.md
758
758
PYLNS =client proto testing
759
+ update-versions : update-pyln-versions update-reckless-version update-dot-version update-doc-examples
759
760
update-pyln-versions : $(PYLNS:%=update-pyln-version-% )
760
761
761
762
update-pyln-version-% :
762
763
@if [ -z " $( NEW_VERSION) " ]; then echo " Set NEW_VERSION!" >&2 ; exit 1; fi
763
764
@echo " Updating contrib/pyln-$* to $( NEW_VERSION) "
764
- @sed -i ' ' ' s/^version = .*/version = "$(NEW_VERSION)"/' contrib/pyln-$* /pyproject.toml
765
+ @sed -i.bak ' s/^version = .*/version = "$(NEW_VERSION)"/' contrib/pyln-$* /pyproject.toml && rm contrib/pyln- $* /pyproject.toml.bak
765
766
766
767
pyln-release : $(PYLNS:%=pyln-release-% )
767
768
@@ -792,7 +793,8 @@ update-lock:
792
793
793
794
update-reckless-version :
794
795
@if [ -z " $( NEW_VERSION) " ]; then echo " Set NEW_VERSION!" >&2 ; exit 1; fi
795
- @sed -i ' ' " s/__VERSION__ = '\([.-z]*\)'/__VERSION__ = '$( NEW_VERSION) '/" tools/reckless
796
+ @echo " Updating tools/reckless to $( NEW_VERSION) "
797
+ @sed -i.bak " s/__VERSION__ = '.*'/__VERSION__ = '$( NEW_VERSION) '/" tools/reckless && rm tools/reckless.bak
796
798
797
799
update-dot-version :
798
800
@if [ -z " $( NEW_VERSION) " ]; then echo " Set NEW_VERSION!" >&2 ; exit 1; fi
You can’t perform that action at this time.
0 commit comments