mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
update readme. include automatic version in title of user guide
This commit is contained in:
parent
2709edcc7d
commit
8b38aaa1a3
2 changed files with 12 additions and 7 deletions
8
Makefile
8
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue