From 1695d269c6d7f5ac77e4c0bb5fe395c943fe025c Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Fri, 24 May 2019 16:39:09 +0200
Subject: [PATCH] improve release instructions

---
 RELEASE.rst | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/RELEASE.rst b/RELEASE.rst
index 1a44b06e..f6ae00fd 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -280,6 +280,14 @@ current Debian testing)::
     ARCH=i386 DIST=<dist> git-pbuilder update
     ARCH=amd64 DIST=<dist> git-pbuilder update
 
+Make sure that the working directory is completely clear::
+
+    git clean -id
+
+(Note that pytest has the nasty habit of creating a hidden ``.pytest_cache``
+directory which gitignores itself.  The above command will not delete this
+directory, but git-pbuilder will complain.)
+
 Now build the packages.  First the i386 package.  The option "--git-tag" tags
 and signs the tag if the build is successful.  In a second step, the package is
 built for amd64, but only the architecture-dependent files (not the
@@ -439,7 +447,7 @@ We will also use the following script (prepare_ppa_upload)::
     for release in $@; do
         cp /tmp/changelog.$$ debian/changelog
         DEBEMAIL=christoph.groth@cea.fr dch -b -v "$version~$release" -u low 'Ubuntu PPA upload'
-        sed -i -e "1,1 s/UNRELEASED/$release/" debian/changelog
+        sed -i -e "1,1 s/UNRELEASED/${release%[0-9]}/" debian/changelog
         debuild -S -sa
     done
 
-- 
GitLab