mirror of
https://github.com/containers/buildah.git
synced 2025-04-18 07:04:05 +03:00
No longer modify buildah.spec
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
4a02242a6a
commit
1deec7cee9
26
release.sh
26
release.sh
@ -21,28 +21,6 @@ write_go_version()
|
||||
sed -i "s/^\(.*Version = \"\).*/\1${LOCAL_VERSION}\"/" define/types.go
|
||||
}
|
||||
|
||||
write_spec_version()
|
||||
{
|
||||
LOCAL_VERSION="$1"
|
||||
sed -i "s/^\(Version: *\).*/\1${LOCAL_VERSION}/" contrib/rpm/buildah.spec
|
||||
}
|
||||
|
||||
write_spec_changelog()
|
||||
{
|
||||
sed '/\*.*-dev-1/d' -i ./contrib/rpm/buildah.spec
|
||||
VERSION=$1
|
||||
date=$(date "+%a %b %d, %Y")
|
||||
name=$(getent passwd $USERNAME | cut -d ':' -f 5)
|
||||
echo "* ${date} ${name} <${USER}@redhat.com> ${VERSION}-1" >.changelog.txt
|
||||
if [[ "${VERSION}" != *-dev ]]; then
|
||||
git log --no-merges --format='- %s' "${LAST_TAG}..HEAD" >>.changelog.txt
|
||||
else
|
||||
echo "" >>.changelog.txt
|
||||
fi
|
||||
sed '/^%changelog.*/r .changelog.txt' -i ./contrib/rpm/buildah.spec
|
||||
rm -f .changelog.txt
|
||||
}
|
||||
|
||||
write_makefile_epoch()
|
||||
{
|
||||
LOCAL_EPOCH="$1"
|
||||
@ -68,8 +46,6 @@ write_changelog()
|
||||
release_commit()
|
||||
{
|
||||
write_go_version "${VERSION}" &&
|
||||
write_spec_version "${VERSION}" &&
|
||||
write_spec_changelog "${VERSION}" &&
|
||||
write_changelog &&
|
||||
git commit -asm "Bump to v${VERSION}
|
||||
|
||||
@ -80,8 +56,6 @@ release_commit()
|
||||
dev_version_commit()
|
||||
{
|
||||
write_go_version "${NEXT_VERSION}-dev" &&
|
||||
write_spec_version "${NEXT_VERSION}-dev" &&
|
||||
write_spec_changelog "${NEXT_VERSION}-dev" &&
|
||||
git commit -asm "Bump to v${NEXT_VERSION}-dev
|
||||
|
||||
[NO TESTS NEEDED]
|
||||
|
Loading…
x
Reference in New Issue
Block a user