diff options
author | 2021-08-17 22:47:10 +0200 | |
---|---|---|
committer | 2021-08-17 22:47:10 +0200 | |
commit | 1f8e02859a351250c9ba3999b0aae28abb259641 (patch) | |
tree | 561b43a572e7f7771ef64ea62c4026d84ce3f648 | |
parent | Enable new dtags via configure, not broken patch (diff) | |
download | binutils-patches-1f8e02859a351250c9ba3999b0aae28abb259641.tar.gz binutils-patches-1f8e02859a351250c9ba3999b0aae28abb259641.tar.bz2 binutils-patches-1f8e02859a351250c9ba3999b0aae28abb259641.zip |
Allow for Gentoo-specific patch versions
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rwxr-xr-x | make-tarball.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/make-tarball.sh b/make-tarball.sh index d681384..463cb4a 100755 --- a/make-tarball.sh +++ b/make-tarball.sh @@ -46,11 +46,14 @@ mydescpatches=$(git describe) cd "${mypathbinutils}" # check that we're on a branch gentoo/${PV} +# note that we allow for gentoo-specific patch versions, ie., +# * the PV 2.37_p1 lives on branch 2.37 +# * the PV 2.37.1 lives on branch 2.37.1 mybranchinfo=$(git status --porcelain -b|grep '^##') mybranch=$(echo ${mybranchinfo}|sed -e 's:^## ::' -e 's:\.\.\..*$::') -if [[ ! "gentoo/binutils-${PV}" == "${mybranch}" ]] ; then - echo "Error: Your git repository is on the incorrect branch ${mybranch}; should be gentoo/binutils-${PV}" +if [[ ! "gentoo/binutils-${PV%_p?}" == "${mybranch}" ]] ; then + echo "Error: Your git repository is on the incorrect branch ${mybranch}; should be gentoo/binutils-${PV%_p?}" exit 1 fi |