From 8b38aaa1a3ab5b884abcc9d410ceaeba6f06bce9 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 25 Jan 2021 22:56:12 +0100 Subject: [PATCH] update readme. include automatic version in title of user guide --- Makefile | 8 +++++--- README.md | 11 +++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 591c0fd..eacaf5e 100644 --- a/Makefile +++ b/Makefile @@ -5,14 +5,14 @@ MANUALDIR = $(MODERNCVDIR)/manual # version and date of the current release. This gets updated upon calling # either the rule version or the rule release -VERSION = v2.1.0 -VERSIONDATE = 2021/01/21 +VERSION = v2.1.0-40-gfe4d968-dirty +VERSIONDATE = 2021/01/25 # user callable NEW option, to specify the new version. If unspecified, the # new version gets determined by git. ifdef NEW VERSIONNEXT = $(NEW) else - VERSIONNEXT = $(shell git describe --tags) + VERSIONNEXT = $(shell git describe --tags --dirty) endif VERSIONDATENEXT = $(shell date +"%Y\/%m\/%d") TARBALL=moderncv-$(VERSIONNEXT).tar @@ -97,6 +97,8 @@ version: if [[ -f "$$file" ]] && [[ ! -h "$$file" ]]; then echo "updating version info of file $$file to $(VERSIONNEXT) (was $(VERSION))"; sed -i "s/$$findstr/$$replacestr/g" $$file; + # update version info in the title of documentation + sed -i "s/Package version $(VERSION)}/Package version $(VERSIONNEXT)}/g" $$file; fi done done diff --git a/README.md b/README.md index cd07741..663028b 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The user guide can be found in the folder `manual` and contains additional infor ### Makefile The `Makefile` supports the following rules. -#### Rules intended for regular use +#### Rules for building templates and the user guide * `template:` Build the `moderncv` template `template.tex` with `LuaLaTeX`. This rule can be called in one of two ways: * `make template`: Build the template in casual style. * `make template STYLE=