From: Brendan Cully Date: Fri, 6 Apr 2007 20:14:24 +0000 (-0700) Subject: Fix up release scripts for Hg X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e283f82e210babb6c33ab561c2b2636f798b6ea;p=neomutt Fix up release scripts for Hg --- diff --git a/ChangeLog b/ChangeLog index 67ec8a5a5..a26a71310 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,27 @@ -2007-04-05 18:52 -0700 Brendan Cully (94d3441e86d0) +2007-04-06 12:54 -0700 Brendan Cully (bd9401de2690) + + * lib.c: safe_rename: fall back to rename on ENOSYS and EPERM as well + as EXDEV. sshfs returns ENOSYS when attempting cross-directory + links. vfat returns EPERM. + + * lib.c: Make safe_open with O_EXCL friendlier for NFS. Per #2707, + when an open file is moved into a different directory over NFS, it + may leave a .nfsXXX hardlink behind. This causes the rmdir in + safe_open to fail, leaving tempdir droppings around. This patch + works around the problem by closing the file after creating it and + reopening it after rename. + +2007-04-05 21:38 -0700 Michael Elkins (177c060504bb) + + * configure.ac, hcache.c: Fixup to detect qdbm includes in + /usr/include/qdbm. + + Remove HAVE_QDBM_VILLA_H because it is redundant. + +2007-04-05 19:22 -0700 Brendan Cully (ee0fabbde466) + + * configure.ac, hcache.c: Fix up QDBM autoconf test for arguments + and includes in subdirectories * imap/message.c: Fix logic error introduced in [efbcef81ac49] diff --git a/Makefile.am b/Makefile.am index b3c905298..e97073645 100644 --- a/Makefile.am +++ b/Makefile.am @@ -186,8 +186,7 @@ commit: pclean check-security commit-real update-changelog commit-changelog update-changelog: (cd $(top_srcdir); \ - cvs update ChangeLog; \ - sh ./mkchangelog.sh | fmt -c | cat - ChangeLog > ChangeLog.$$$$ && mv ChangeLog.$$$$ ChangeLog; \ + sh ./mkchangelog.sh | cat - ChangeLog > ChangeLog.$$$$ && mv ChangeLog.$$$$ ChangeLog; \ $${VISUAL:-vi} ChangeLog) # kluge around automake problems. diff --git a/build-release b/build-release index bfbba1799..7a46eb453 100755 --- a/build-release +++ b/build-release @@ -23,9 +23,16 @@ fi devel="devel/" # comment out for the stable branch +# test for uncommitted changes +if hg id | grep -q '+' +then + echo "Uncommitted changes" + exit 1 +fi + # update the source -#cvs update +hg update # Do automated security checks @@ -66,12 +73,13 @@ make dist #cvs commit -m "automatic post-release commit for mutt-${VERSION}" #make commit-changelog -#cvs tag ${TAG} +hg tag ${TAG} # build the diff between the two releases -if test "$diff" = yes ; then - cvs rdiff -u -r ${OTAG} -r ${TAG} mutt | gzip -9 \ +if test "$diff" = yes +then + hg diff -r ${OTAG} -r ${TAG} | gzip -9 \ > diff-${OVERSION}-${VERSION}.gz fi @@ -101,7 +109,8 @@ for f in $DISTFILES ; do scp $f $f.asc trithemius.gnupg.org:/home/ftp/mutt/${devel} done -cvs update +hg update +gpg sign # Finally, announce the new mutt to the public diff --git a/mkchangelog.sh b/mkchangelog.sh index ce909dcf4..435f8ba0a 100755 --- a/mkchangelog.sh +++ b/mkchangelog.sh @@ -1,6 +1,6 @@ #!/bin/sh TZ=GMT; export TZ -date="`head -1 ChangeLog | awk '{print $1, $2}'`" -test -n "$date" || exit 1 -cvs -z9 log -d ">$date" | perl ./cvslog2changelog.pl +lrev=$(hg log --limit 1 --template '{rev}' ChangeLog) + +hg log --style=./hg-changelog-map -r tip:$lrev