summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/tag-release.sh49
1 files changed, 49 insertions, 0 deletions
diff --git a/etc/tag-release.sh b/etc/tag-release.sh
new file mode 100644
index 0000000..d9b4a21
--- /dev/null
+++ b/etc/tag-release.sh
@@ -0,0 +1,49 @@
1#!/bin/sh
2
3set -e
4set -o pipefail
5
6TAG="$1"
7GUIX_SCIENCE_COMMIT="$2"
8GUIX_REVISION="$3"
9
10usage () {
11 echo "usage: $0 <release-tag> <guix-science-commit> <guix-revision>"
12 echo
13 echo "where <release-tag> is in the format vYYYYMMDD, <guix-science-commit>"
14 echo "is the Guix-Science commit to tag and <guix-revision> is the Guix"
15 echo "revision to associate with the release."
16}
17
18# TODO: check arguments.
19if [ $# -ne 3 ] ; then
20 usage
21 exit 1
22fi
23
24echo ";; Guix-Science release $TAG
25;;
26;; Guix revision: $GUIX_REVISION
27(list (channel
28 (name 'guix-science)
29 (url \"https://codeberg.org/guix-science/guix-science.git\")
30 (branch \"master\")
31 (commit
32 \"$GUIX_SCIENCE_COMMIT\")
33 (introduction
34 (make-channel-introduction
35 \"b1fe5aaff3ab48e798a4cce02f0212bc91f423dc\"
36 (openpgp-fingerprint
37 \"CA4F 8CF4 37D7 478F DA05 5FD4 4213 7701 1A37 8446\"))))
38 (channel
39 (name 'guix)
40 (url \"https://git.guix.gnu.org/guix.git\")
41 (branch \"master\")
42 (commit
43 \"$GUIX_REVISION\")
44 (introduction
45 (make-channel-introduction
46 \"9edb3f66fd807b096b48283debdcddccfea34bad\"
47 (openpgp-fingerprint
48 \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\")))))
49" | git tag --annotate --sign -F - $TAG $GUIX_SCIENCE_COMMIT