]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - release.sh
xfsprogs: update version and changelog
[thirdparty/xfsprogs-dev.git] / release.sh
CommitLineData
3a01aadc 1#!/bin/bash
79f97624
CH
2#
3# Automate generation a new release
4#
5
3a01aadc 6. ./VERSION
79f97624
CH
7
8version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
9date=`date +"%-d %B %Y"`
10
11echo "Updating CHANGES"
12sed -e "s/${version}.*/${version} (${date})/" doc/CHANGES > doc/CHANGES.tmp && \
13 mv doc/CHANGES.tmp doc/CHANGES
14
15echo "Commiting CHANGES update to git"
3a01aadc 16git commit -s -a -m "${version} release"
79f97624
CH
17
18echo "Tagging git repository"
3a01aadc 19git tag -s -a -m "${version} release" v${version}
79f97624 20
c0251dab
AE
21echo "Done. Please remember to push out tags using \"git push --tags\""
22echo "If you wish to create a source tarball, run \"make dist\""
79f97624 23