aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-11-26 13:51:03 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-11-26 13:51:03 -0200
commit9594510d81e582327b70ab62c9214d5c3cdc41b8 (patch)
tree485945fc959fe938d8fda749149d2c57767c427b
parent00dbdc632128a719de9adfab62ba7380620dd964 (diff)
downloadkeyringer-9594510d81e582327b70ab62c9214d5c3cdc41b8.tar.gz
keyringer-9594510d81e582327b70ab62c9214d5c3cdc41b8.tar.bz2
Adding 'release' Makefile target for a cleaner workflow
-rw-r--r--Makefile8
-rw-r--r--development.mdwn20
2 files changed, 10 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index 8ec01c2..360bd29 100644
--- a/Makefile
+++ b/Makefile
@@ -52,3 +52,11 @@ build_man:
tarball:
git archive --prefix=keyringer-$(VERSION)/ --format=tar HEAD | bzip2 >../tarballs/keyringer-$(VERSION).tar.bz2
+
+release:
+ @make build_man
+ git commit -a -m "Keyringer $(VERSION)"
+ git tag -s $(VERSION) -m "Keyringer $(VERSION)"
+ @make tarball
+ gpg --armor --detach-sign --output ../tarballs/keyringer-$(VERSION).tar.bz2.asc ../tarballs/keyringer-$(VERSION).tar.bz2
+ scp ../tarballs/keyringer-$(VERSION).tar.bz2* keyringer:/var/sites/keyringer/releases/
diff --git a/development.mdwn b/development.mdwn
index cfedb4b..3400643 100644
--- a/development.mdwn
+++ b/development.mdwn
@@ -48,27 +48,11 @@ Prepare the source code:
$EDITOR keyringer # and update KEYRINGER_VERSION
$EDITOR ChangeLog
- make build_man
-
-Commit and tag a release:
-
VERSION="`./keyringer | head -n 1 | cut -d ' ' -f 2`"
- git commit -a -m "Keyringer $VERSION"
- git tag -s $VERSION -m "Keyringer $VERSION"
-
-Create a release file:
-
- make tarball
-
-Sign the release ([see backupninja development guidelines](https://labs.riseup.net/code/projects/backupninja/wiki/Release)):
-
- cd ../tarballs
- gpg --armor --detach-sign keyringer-$VERSION.tar.bz2
-Upload the release:
+Create and upload a new release:
- scp keyringer-$VERSION.tar.bz2* keyringer:/var/sites/keyringer/releases/
- cd -
+ make release
Update the debian branch: