hal: Branch 'master'
David Zeuthen
david at kemper.freedesktop.org
Wed Apr 25 15:20:39 PDT 2007
Makefile.am | 35 +++++++++++++++++++++++++++++++++++
configure.in | 2 +-
2 files changed, 36 insertions(+), 1 deletion(-)
New commits:
diff-tree f0c5a0ad6976d5936e6fac75df40f90c6cc48bd5 (from 80c59eb128d8cab66d780aef6e0757369ca607cd)
Author: David Zeuthen <davidz at redhat.com>
Date: Wed Apr 25 18:20:38 2007 -0400
add a 'release' target to automate releases
diff --git a/Makefile.am b/Makefile.am
index 93537ff..c9bb98d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,3 +30,38 @@ EXTRA_DIST = HACKING ChangeLog
clean-local :
rm -f *~
+
+release:
+ @echo ""
+ @echo "Check that all your changes are committed and pushed to"
+ @echo "the remote master repository. Then run 'make release-real'."
+ @echo ""
+
+MAIL=/usr/sbin/sendmail
+
+release-real:
+ @make check
+ @date +%Y%m%d > VERSION
+ @rm -rf autom4te.cache
+ @autoreconf
+ @make dist
+ @scp hal-info-`cat VERSION`.tar.gz david at people.freedesktop.org:public_html/dist
+ @git-commit -m "version `cat VERSION`" VERSION
+ @git-tag -s HAL_INFO_`cat VERSION`
+ @git-push
+ @echo "From: $(GIT_AUTHOR_NAME) <$(GIT_AUTHOR_EMAIL)>" > .release-mail
+ @echo "To: hal at lists.freedesktop.org" >> .release-mail
+ @echo "Subject: hal-info `cat VERSION` release" >> .release-mail
+ @echo "X-Mailer: hal-info release script" >> .release-mail
+ @echo "" >> .release-mail
+ @echo "There's a new hal-info `cat VERSION` release available. Download from" >> .release-mail
+ @echo "" >> .release-mail
+ @echo " http://people.freedesktop.org/~david/dist/hal-info-`cat VERSION`.tar.gz" >> .release-mail
+ @echo "" >> .release-mail
+ @echo "." >> .release-mail
+ @echo "" >> .release-mail
+ @cat .release-mail | $(MAIL) davidz at redhat.com hal at lists.freedesktop.org
+
+
+
+
diff --git a/configure.in b/configure.in
index f444fdb..452dabd 100644
--- a/configure.in
+++ b/configure.in
@@ -1,6 +1,6 @@
AC_PREREQ(2.57)
-AC_INIT(hal-info, 20070402, david at fubar.dk)
+AC_INIT(hal-info, esyscmd([tr -d '\n' < VERSION]), hal at lists.freedesktop.org)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)
More information about the hal-commit
mailing list