xfstests: Refactor release scripts to conform to using git archive

Refactored release scripts to conform to using git archive

When generating a release, there is a risk of some files being
stale, such as configure and the m4/autotools temp files. This
is fixed with a clean at the beginning of release generation.
In addition, there is no uniformity in the current method of
source tar generation between xfs utilities. Using git archive
solves this issue across all utilities.

Signed-off-by: Andrew Dahl <adahl@sgi.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
Andrew Dahl
2013-01-14 12:17:09 -06:00
committed by Ben Myers
parent 8322038f2b
commit e5f1a13792
2 changed files with 29 additions and 2 deletions
+9 -2
View File
@@ -8,6 +8,9 @@
version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
date=`date +"%-d %B %Y"`
echo "Cleaning up"
make realclean
echo "Updating CHANGES"
sed -e "s/${version}.*/${version} (${date})/" doc/CHANGES > doc/CHANGES.tmp && \
mv doc/CHANGES.tmp doc/CHANGES
@@ -18,6 +21,10 @@ git commit -s -a -m "${version} release"
echo "Tagging git repository"
git tag -s -a -m "${version} release" v${version}
echo "Done. Please remember to push out tags using \"git push --tags\""
echo "If you wish to create a source tarball, run \"make dist\""
echo "Making source tarball"
make dist
echo "Sign the source tarball"
gpg --detach-sign xfstests-${version}.tar.gz
echo "Done. Please remember to push out tags using \"git push --tags\""