Commit aeca4a9b authored by Vitaly Lipatov's avatar Vitaly Lipatov

improve release_commit.sh

parent 4bd4508e
......@@ -4,6 +4,19 @@
. /usr/share/eterbuild/eterbuild
load_mod spec etersoft
push_tag()
{
local version="$1"
git tag -a "$version" -e -s -m "$(rpmlog -q --last-changelog | sed -e 's|^* ||')"
git push pub.github $version
}
if [ -n "$1" ] ; then
[ "$(git tag -l "$1")" = "$1" ] || fatal "Can't find tag '$1' in the repo."
push_tag $1
exit
fi
SPECNAME=eepm.spec
version="$(get_version $SPECNAME)"
......@@ -11,8 +24,8 @@ version="$(get_version $SPECNAME)"
git add packed
git commit packed -m "commit packed $version"
git tag -a "$version" -e -s -m "$(rpmlog -q --last-changelog | sed -e 's|^* ||')"
git push pub.github $version
push_tag $version
gpush pub.github
rpmpub /var/ftp/pub/Korinf/sources
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment