You need to sign in or sign up before continuing.
release_commit.sh 780 Bytes
Newer Older
1 2 3 4 5 6
#!/bin/sh

# load common functions, compatible with local and installed script
. /usr/share/eterbuild/eterbuild
load_mod spec etersoft

7 8 9 10 11
push_tag()
{
    local version="$1"
    git tag -a "$version" -e -s -m "$(rpmlog -q --last-changelog | sed -e 's|^* ||')"
    git push pub.github $version
12
    git push pub.gitlab $version
13 14 15 16 17 18 19 20
}

if [ -n "$1" ] ; then
    [ "$(git tag -l "$1")" = "$1" ] || fatal "Can't find tag '$1' in the repo."
    push_tag $1
    exit
fi

21 22 23
SPECNAME=eepm.spec
version="$(get_version $SPECNAME)"

24 25
./pack_in_onefile.sh

26 27
git add packed
git commit packed -m "commit packed $version"
28 29

push_tag $version
30
gpush pub.github
Vitaly Lipatov's avatar
Vitaly Lipatov committed
31

32 33
baseversion=$(echo "$version" | sed -e 's|\.[0-9]*$||')

Vitaly Lipatov's avatar
Vitaly Lipatov committed
34
rpmpub /var/ftp/pub/Korinf/sources
35
#rpmpub /var/ftp/pub/Etersoft/EPM/$baseversion/sources