Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1955bc88 authored by POTTIER Francois's avatar POTTIER Francois
Browse files

Makefile: automatically compute DATE_WITH_SLASHES.

parent 1893fda2
No related branches found
No related tags found
No related merge requests found
......@@ -7,11 +7,13 @@ THIS := monolith
# The version number is automatically set to the current date,
# unless DATE is defined on the command line.
# An example of the date format is 20241208.
DATE := $(shell /bin/date +%Y%m%d)
# This is used in [make release] to search CHANGES.md.
# Ideally, it should be derived from $(DATE).
DATE_WITH_SLASHES := $(shell /bin/date +%Y/%m/%d)
# The date, with slahes, is used in [make release] to search CHANGES.md.
# An example is 2024/12/08.
DATE_WITH_SLASHES := $(shell echo "${DATE}" \
| sed -e 's|\([0-9][0-9][0-9][0-9]\)\([0-9][0-9]\)\([0-9][0-9]\)|\1/\2/\3|')
# The repository URL (https).
REPO := https://gitlab.inria.fr/fpottier/$(THIS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment