From 19d34de3da75cbd9f814f0a9ec03b4e0861b1541 Mon Sep 17 00:00:00 2001 From: Ovidiu Gheorghies Date: Sat, 2 Feb 2019 22:07:58 +0200 Subject: [PATCH] Fix GCB/CTAN version compatibility --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4bac71b..ab982de 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ _UID=$(shell id -u) TAG_NAME := $(or $(TAG_NAME),$(shell git describe --tags | rev | cut -f3- -d- | rev )) -TAG_NAME := $(TAG_NAME:v%=%) +TAG_NAME_NO_V := $(TAG_NAME:v%=%) REVISION_ID := $(or $(REVISION_ID),$(shell git describe --tags | rev | cut -f-2 -d- | rev)) METAUML_RELEASE_DATE := $(shell date "+%B %d, %Y") @@ -16,7 +16,7 @@ release: mkdir dist/build/doc mkdir dist/build/examples mkdir dist/build/inputs - sed -e 's/METAUML_RELEASE_VERSION/$(TAG_NAME)/' -e 's/METAUML_RELEASE_DATE/$(METAUML_RELEASE_DATE)/' ctan/README >dist/build/README + sed -e 's/METAUML_RELEASE_VERSION/$(TAG_NAME_NO_V)/' -e 's/METAUML_RELEASE_DATE/$(METAUML_RELEASE_DATE)/' ctan/README >dist/build/README cp manual/metauml-manual.pdf dist/build/doc/metauml-manual-$(TAG_NAME)-$(REVISION_ID).pdf cp src/*.mp dist/build/inputs cp -r manual dist/build/examples/