summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--release.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/release.sh b/release.sh
deleted file mode 100644
index 08ee5fe..0000000
--- a/release.sh
+++ /dev/null
@@ -1,38 +0,0 @@
1#!/bin/sh
2
3
4# Release script for the MAT
5
6
7echo "Previous version: $(git describe --abbrev=0)"
8echo "Please enter the new version number"
9read VERSION
10
11echo '[+] Update version number'
12sed s/__version__\ =\ \'[0-9\.]*\'/__version__\ =\ \'${VERSION}\'/ MAT/mat.py # > mat.py
13sed s/__version__\ =\ \'[0-9\.]*\'/__version__\ =\ \'${VERSION}\'/ setup.py # > mat.py
14
15echo '[+] Update changelog'
16vim -O CHANGELOG <(git log --graph --pretty=format:'%h -%d %s (%cr) )<%an>' --abbrev-commit --date=relative)
17
18echo '[+] Commit the changelog'
19git commit CHANGELOG MAT/mat.py setup.py -m 'Update changelog and bump version'
20
21echo '[+] Create a tag'
22git tag -s ${VERSION}
23
24echo '[+] Push the tag'
25git push --tags origin
26
27echo '[+] Create the release archive'
28git archive --format=tar.gz --prefix=mat-${VERSION}/ ${VERSION} > mat-${VERSION}.tar.gz
29
30echo '[+] Sign the archive'
31gpg --armor --detach-sign mat-${VERSION}.tar.gz
32
33# Recall
34echo '[+] Release done'
35echo "[*] Don't forget to:"
36echo "\t- Upload archives to https://mat.boum.org/files"
37echo "\t- Add changelog to https://mat.boum.org/"
38echo "\t- Have a nice day"