make bump - show an error for incorrect use

This commit is contained in:
Andrej730
2024-09-13 11:57:44 +05:00
parent d879bf9f89
commit 148f8361be
+3
View File
@@ -84,6 +84,9 @@ endif
OLD:=f5e02d1
.PHONY: bump
bump:
ifndef NEW
$(error ERROR: 'NEW' variable is not set (should be set with new commmit hash). Example use for 'bump' command: 'make bump NEW=0123456'.)
endif
cd . && $(SED) -b "s/$(OLD)/$(NEW)/" Makefile
cd ../ifcopenshell-python/ && $(SED) -b "s/$(OLD)/$(NEW)/" Makefile