mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
e5f1a13792
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>
31 lines
667 B
Bash
31 lines
667 B
Bash
#!/bin/bash
|
|
#
|
|
# Automate generation a new release
|
|
#
|
|
|
|
. ./VERSION
|
|
|
|
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
|
|
|
|
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 "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\""
|