aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-05-05 10:05:34 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-05-05 12:43:24 -0700
commit0e4589e9b368fa5e6c1cd5585f9dc55e2d60ce3f (patch)
tree9bfe83399932bf283183afe9f972d9a35bdac1b8 /scripts
parent706c4afc0f7576d828e22b97a17a3e6d5daf08af (diff)
downloadconsfigurator-0e4589e9b368fa5e6c1cd5585f9dc55e2d60ce3f.tar.gz
scripts/release: update news.rst with release date
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/release b/scripts/release
index dfa6b4b..3b16a5a 100755
--- a/scripts/release
+++ b/scripts/release
@@ -22,6 +22,10 @@ perl -pi -we's/^;; Version: .+/;; Version: '$version'/' \
emacs/consfigurator.el.in
perl -pi -we"s/release = '.+'/release = '$version'/" doc/conf.py
+perl -MPOSIX=strftime -pi \
+ -we's/^\Q'$version' (unreleased)\E$/
+ strftime "'$version' (%Y-%m-%d)", localtime/e' doc/news.rst
+
dist=$(dpkg-parsechangelog -SDistribution)
if [ "$dist" = "UNRELEASED" ]; then
dch -v$version-1 ""
@@ -30,7 +34,7 @@ else
fi
dch -r
-changed_files="consfigurator.asd emacs/consfigurator.el.in doc/conf.py debian/changelog"
+changed_files="consfigurator.asd emacs/consfigurator.el.in doc/conf.py doc/news.rst debian/changelog"
if ! dpkg-parsechangelog | grep -q "New upstream release."; then
echo >&2 'Debian changelog lacks line "New upstream release."'