Closed HenrikBengtsson closed 4 years ago
The below idea works
BIOC_VERSION := $(BIOC_VERSION_RELEASE) BIOC_VERSION_X := $(shell echo "$(BIOC_VERSION)" | sed -E 's/[.].*//') BIOC_VERSION_Y := $(shell echo "$(BIOC_VERSION)" | sed -E 's/[^.]+[.]//') BIOC_VERSION_Y_OLD := $(shell bc <<< "$(BIOC_VERSION_Y)-1") BIOC_VERSION_OLD := $(BIOC_VERSION_X).$(BIOC_VERSION_Y_OLD)
The below idea works