From 148f8361be426c30e65566bc117c0d1561f3d577 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 13 Sep 2024 11:57:44 +0500 Subject: [PATCH] make bump - show an error for incorrect use --- src/bonsai/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bonsai/Makefile b/src/bonsai/Makefile index 8a67f787de..ef469d29cc 100644 --- a/src/bonsai/Makefile +++ b/src/bonsai/Makefile @@ -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