From 8baf6c07bd88dc826186222023a423c37ba46ef3 Mon Sep 17 00:00:00 2001 From: Alex Elder Date: Thu, 13 Oct 2011 16:31:04 +0000 Subject: [PATCH] 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 Reviewed-by: Christoph Hellwig --- VERSION | 2 +- doc/CHANGES | 4 ++++ release.sh | 25 +++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 doc/CHANGES create mode 100644 release.sh diff --git a/VERSION b/VERSION index 2bee4003..4ee5c22a 100644 --- a/VERSION +++ b/VERSION @@ -2,6 +2,6 @@ # This file is used by configure to get version information # PKG_MAJOR=1 -PKG_MINOR=0 +PKG_MINOR=1 PKG_REVISION=0 PKG_BUILD=1 diff --git a/doc/CHANGES b/doc/CHANGES new file mode 100644 index 00000000..7624548d --- /dev/null +++ b/doc/CHANGES @@ -0,0 +1,4 @@ +xfstests-1.1.0 (13 October 2011) + - This is the firsteversioned release recorded for the + xfstests suite. Tests 240-263 have been added to the + suite (to date) in 2011. diff --git a/release.sh b/release.sh new file mode 100644 index 00000000..90a8a055 --- /dev/null +++ b/release.sh @@ -0,0 +1,25 @@ +#!/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\""