mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +00:00
make bump - show an error for incorrect use
This commit is contained in:
@@ -84,6 +84,9 @@ endif
|
|||||||
OLD:=f5e02d1
|
OLD:=f5e02d1
|
||||||
.PHONY: bump
|
.PHONY: bump
|
||||||
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 . && $(SED) -b "s/$(OLD)/$(NEW)/" Makefile
|
||||||
cd ../ifcopenshell-python/ && $(SED) -b "s/$(OLD)/$(NEW)/" Makefile
|
cd ../ifcopenshell-python/ && $(SED) -b "s/$(OLD)/$(NEW)/" Makefile
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user