]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - release.sh
xfsprogs: Release v6.7.0
[thirdparty/xfsprogs-dev.git] / release.sh
CommitLineData
5b962abc 1#!/bin/sh
79f97624 2#
5b962abc 3# Automate generation of a new release
79f97624 4#
f7efc5e7
DC
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)
79f97624 11
3a01aadc 12. ./VERSION
79f97624
CH
13
14version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
15date=`date +"%-d %B %Y"`
16
56c84e02
AD
17echo "Cleaning up"
18make realclean
19
79f97624
CH
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"
05aa7620 25git commit -a -m "${version} release"
79f97624
CH
26
27echo "Tagging git repository"
05aa7620 28git tag -a -m "${version} release" v${version}
79f97624 29
3229e208
BM
30echo "Making source tarball"
31make dist
32
05aa7620
RJ
33#echo "Sign the source tarball"
34#gpg --detach-sign xfsprogs-${version}.tar.gz
79f97624 35
3229e208 36echo "Done. Please remember to push out tags using \"git push --tags\""