From 0d159492edbe5ddc63333baae1531cbf5e8c518b Mon Sep 17 00:00:00 2001 From: Alessandro Domanico Date: Mon, 13 May 2024 18:53:53 +0200 Subject: [PATCH] Fix: Replace RELEASE_DATE with the release date into the template (#211) * Replace _date_ with the release note into the template * Change placeholder * Change delimeter for date including backslashes "/" --- Makefile | 2 ++ RELEASE_NOTES_TEMPLATE.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c104f901..21253f65 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,7 @@ SHELL := /bin/bash # Open Hospital version OH_VERSION ?= $(shell git describe --abbrev=0 --tags) +RELEASE_DATE := $(shell date +'%d/%m/%Y') # software distribution CLIENT := OpenHospital-$(OH_VERSION)-multiarch-client @@ -260,6 +261,7 @@ release-notes: sed -i "s/VERSION/$(OH_VERSION)/g" RELEASE_NOTES.md sed -i "s/SECONDLASTTAG/$${secondlasttag//$$'\n'/\\n}/g" RELEASE_NOTES.md sed -i "s/LASTTAG/$${lasttag//$$'\n'/\\n}/g" RELEASE_NOTES.md + sed -i "s|RELEASE_DATE|$(RELEASE_DATE)|g" RELEASE_NOTES.md head -6 RELEASE_NOTES.md > RELEASE_NOTES #################################################################### diff --git a/RELEASE_NOTES_TEMPLATE.md b/RELEASE_NOTES_TEMPLATE.md index 91947665..bd84798b 100644 --- a/RELEASE_NOTES_TEMPLATE.md +++ b/RELEASE_NOTES_TEMPLATE.md @@ -3,7 +3,7 @@ Open Hospital is a free and open-source Health Information Management System (HIMS) software application. Please visit the Open Hospital website https://www.open-hospital.org/ for more information. -Released on _date_ +Released on _RELEASE_DATE_ ### Release Highlights -->