Skip to content

Commit

Permalink
Fix: Replace RELEASE_DATE with the release date into the template (#211)
Browse files Browse the repository at this point in the history
* Replace _date_ with the release note into the template

* Change placeholder

* Change delimeter for date including backslashes "/"
  • Loading branch information
mwithi committed May 13, 2024
1 parent 769d3b5 commit 0d15949
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

####################################################################
Expand Down
2 changes: 1 addition & 1 deletion RELEASE_NOTES_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand Down

0 comments on commit 0d15949

Please sign in to comment.