aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2023-08-08 07:55:54 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2023-08-08 07:55:54 -0700
commita10a922c0596ca0e094eb56bf396911014571ce8 (patch)
tree6f93f970eb6728f9575a028153b2c910df99b610
parent*: fix trap calls to ensure call on regular exit and errors (diff)
downloadmastermirror-scripts-a10a922c0596ca0e094eb56bf396911014571ce8.tar.gz
mastermirror-scripts-a10a922c0596ca0e094eb56bf396911014571ce8.tar.bz2
mastermirror-scripts-a10a922c0596ca0e094eb56bf396911014571ce8.zip
Makefile: add helper for applying tag
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8fb0e3e..ecd21d6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,7 @@
all:
tag:
git tag -s $(shell date +%Y%m%dT%H%M%SZ -u)
+
+# This is a helper for infra
+update-puppet-to-tag:
+ sed -i -e "/.revision = /s/20.*[0-9]Z/$(shell git tag |grep 20 |tail -n1)/" ../puppet/dist/mirrors/manifests/scripts.pp