From 38e6002adfc4cf79ebdb14e064a5a2a16df1cdb6 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 20 Apr 2011 16:41:00 +0100 Subject: [PATCH 1/2] add a Makefile rule to upload a tarball and up-to-date docs Simplified from telepathy-glib, which has more elaborate machinery to automate releases. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=26952 --- HACKING | 3 ++- Makefile.am | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/HACKING b/HACKING index b7861c7..702c1db 100644 --- a/HACKING +++ b/HACKING @@ -56,9 +56,10 @@ To make a release (please replace use of 0.76 with the new version) * ./autogen.sh * make * make distcheck +* sign the tarball (or use: make dbus-glib-0.76.tar.gz.asc) +* make maintainer-upload-release * git commit -m "Release" * git tag -a dbus-glib_0.76 -* scp resulting tarball to ssh://gabe.freedesktop.org/srv/dbus.freedesktop.org/www/releases/dbus-glib/ * edit configure.ac, change version to odd (e.g. 0.76 -> 0.77) * git commit -m "Bump version for development" * Update the wiki: http://www.freedesktop.org/wiki/Software/DBusBindings diff --git a/Makefile.am b/Makefile.am index 8bd2381..278daed 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,4 +40,16 @@ $(srcdir)/ChangeLog: all-local: Doxyfile +%.tar.gz.asc: %.tar.gz + $(AM_V_GEN)gpg --detach-sign --armor $@ + +maintainer-upload-release: + test -f @PACKAGE@-@VERSION@.tar.gz + test -f @PACKAGE@-@VERSION@.tar.gz.asc + gpg --verify @PACKAGE@-@VERSION@.tar.gz.asc + rsync -vzP @PACKAGE@-@VERSION@.tar.gz dbus.freedesktop.org:/srv/dbus.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE@-@VERSION@.tar.gz + rsync -vzP @PACKAGE@-@VERSION@.tar.gz.asc dbus.freedesktop.org:/srv/dbus.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE@-@VERSION@.tar.gz.asc + rsync -rvzPp --chmod=Dg+s,ug+rwX,o=rX $(srcdir)/docs/reference/html/ \ + dbus.freedesktop.org:/srv/dbus.freedesktop.org/www/doc/@PACKAGE@/ + include tools/lcov.am -- 1.7.4.4