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
756756
757757# See doc/contribute-to-core-lightning/contributor-workflow.md
758758PYLNS =client proto testing
759+ update-versions : update-pyln-versions update-reckless-version update-dot-version update-doc-examples
759760update-pyln-versions : $(PYLNS:%=update-pyln-version-% )
760761
761762update-pyln-version-% :
762763 @if [ -z " $( NEW_VERSION) " ]; then echo " Set NEW_VERSION!" >&2 ; exit 1; fi
763764 @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
765766
766767pyln-release : $(PYLNS:%=pyln-release-% )
767768
@@ -792,7 +793,8 @@ update-lock:
792793
793794update-reckless-version :
794795 @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
796798
797799update-dot-version :
798800 @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