Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: /
Date: Wed, 23 Feb 2022 22:27:18
Message-Id: 1645655226.cf5f268f8b19262515105739bdcc112cd2a6cdbc.mgorny@gentoo
1 commit: cf5f268f8b19262515105739bdcc112cd2a6cdbc
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 23 22:27:06 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 23 22:27:06 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=cf5f268f
7
8 Makefile: add a new "tag" target
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 Makefile | 3 +++
13 1 file changed, 3 insertions(+)
14
15 diff --git a/Makefile b/Makefile
16 index 91ed461..04bfcdb 100644
17 --- a/Makefile
18 +++ b/Makefile
19 @@ -28,6 +28,9 @@ install-dir-%:
20 install-file-%: $(subst _,/,$*)
21 cp "$(subst _,/,$*)" "$(PREFIX)/$(subst _,/,$*)"
22
23 +tag:
24 + git tag -s v$$(( $$(git tag -l --sort=-creatordate | sed -n -e 's:^v::p') + 1 ))
25 +
26 uninstall : uninstall-files
27
28 uninstall-files: $(foreach a, $(sort $(files)), \