Files
apfstests/release.sh
T
Alex Elder 8baf6c07bd xfstests: prepare for marking an initial versioned release
Add the release script used in the other XFS user space packages.
The version is set to 1.1.0, to differentiate it from the 1.0.0
version that was recorded in the VERSION file.

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2011-10-14 08:37:15 -05:00

26 lines
563 B
Bash

#!/bin/bash
#
# Automate generation a new release
#
. ./VERSION
version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
date=`date +"%-d %B %Y"`
echo "Updating CHANGES"
sed -e "s/${version}.*/${version} (${date})/" doc/CHANGES > doc/CHANGES.tmp && \
mv doc/CHANGES.tmp doc/CHANGES
echo "Commiting CHANGES update to git"
git commit -s -a -m "${version} release"
echo "Tagging git repository"
git tag -s -a -m "${version} release" v${version}
echo "Creating source tarball"
make dist
echo "Done."
echo "Please remember to push out tags using \"git push --tags\""