From: Jan Kiszka <jan.kiszka@siemens.com>
To: cip-dev <cip-dev@lists.cip-project.org>
Subject: [isar-cip-core][PATCH] scripts: Add make_release helper
Date: Thu, 13 Apr 2023 22:43:43 +0200 [thread overview]
Message-ID: <3609ada3-9e29-77c7-d07a-8d789a7ed033@siemens.com> (raw)
From: Jan Kiszka <jan.kiszka@siemens.com>
Helps to remember how to tag future releases in the same way.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
scripts/make_release | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100755 scripts/make_release
diff --git a/scripts/make_release b/scripts/make_release
new file mode 100755
index 00000000..24ad9195
--- /dev/null
+++ b/scripts/make_release
@@ -0,0 +1,37 @@
+#!/bin/bash
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2023
+#
+# Authors:
+# Jan Kiszka <jan.kiszka@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+
+usage() {
+ echo "usage: $0 name"
+ exit 1
+}
+
+name=$1
+
+if [ -z "$name" ]; then
+ usage
+fi
+
+if [ -n "$(git status -s -uno)" ]; then
+ echo "Working directory is dirty!"
+ exit 1
+fi
+
+echo -e "Tag commit\n\n $(git log -1 --oneline)"
+echo -e "\nof branch\n\n $(git branch | sed -n 's/^\* //p')"
+echo -ne "\nas $name? (y/N) "
+read answer
+if [ "$answer" != "y" ]; then
+ exit 1
+fi
+
+git tag -as $name -m "Release $name"
--
2.35.3
--
Siemens AG, Technology
Competence Center Embedded Linux
reply other threads:[~2023-04-13 20:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3609ada3-9e29-77c7-d07a-8d789a7ed033@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=cip-dev@lists.cip-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.