# HG changeset patch # User Ethan Blanton # Date 1219632411 0 # Node ID 111b464f6845cefbf43172df45c6532d1580f818 # Parent 2a9ee9b43df6f8e4b9a052f65cfc745ea4dceacb Add release-time candy 'make release' and 'make packages' to the Makefile. make release will run a distcheck followed by building packages. make packages will build a .tar.gz, .tar.bz2, and src.rpm, and sign all three with your default gpg key. The failure of gpg will abort the process. diff -r 2a9ee9b43df6 -r 111b464f6845 Makefile.am --- a/Makefile.am Sun Aug 24 16:59:06 2008 +0000 +++ b/Makefile.am Mon Aug 25 02:46:51 2008 +0000 @@ -30,6 +30,15 @@ distcheck-hook: libpurple/plugins/perl/common/Purple.pm pidgin/plugins/perl/common/Pidgin.pm # cp libpurple/plugins/perl/common/Gaim.pm $(distdir)/libpurple/plugins/perl/common +release: distcheck packages + +packages: dist-gzip dist-bzip2 + gpg -ab pidgin-$(PACKAGE_VERSION).tar.gz + gpg -ab pidgin-$(PACKAGE_VERSION).tar.bz2 + gpg --verify pidgin-$(PACKAGE_VERSION).tar.gz.asc pidgin-$(PACKAGE_VERSION).tar.gz + gpg --verify pidgin-$(PACKAGE_VERSION).tar.bz2.asc pidgin-$(PACKAGE_VERSION).tar.bz2 + rpmbuild -ts --sign --with avahi --with dbus --with meanwhile --with sasl --with silc --with tcl pidgin-$(PACKAGE_VERSION).tar.bz2 + if ENABLE_GTK appsdir = $(datadir)/applications apps_in_files = pidgin.desktop.in