]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame_incremental - release.sh
xfsprogs: Release v4.19.0-rc0
[thirdparty/xfsprogs-dev.git] / release.sh
... / ...
CommitLineData
1#!/bin/sh
2#
3# Automate generation of a new release
4#
5# Need to first update these files:
6#
7# VERSION (with new version number)
8# docs/CHANGES (with changelog and version/date string)
9# configure.ac (with new version string)
10# debian/changelog (with new release entry, only for release version)
11
12. ./VERSION
13
14version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
15date=`date +"%-d %B %Y"`
16
17echo "Cleaning up"
18make realclean
19
20echo "Updating CHANGES"
21sed -e "s/${version}.*/${version} (${date})/" doc/CHANGES > doc/CHANGES.tmp && \
22 mv doc/CHANGES.tmp doc/CHANGES
23
24echo "Commiting CHANGES update to git"
25git commit -a -m "${version} release"
26
27echo "Tagging git repository"
28git tag -a -m "${version} release" v${version}
29
30echo "Making source tarball"
31make dist
32
33#echo "Sign the source tarball"
34#gpg --detach-sign xfsprogs-${version}.tar.gz
35
36echo "Done. Please remember to push out tags using \"git push --tags\""