get_version_number.sh
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=342
This commit is contained in:
parent
1efbd997a2
commit
acf579536e
@ -1,3 +1,4 @@
|
||||
addFilter(".*hidden-file-or-dir.*/etc/skel/\..*")
|
||||
addFilter(".*shared-library-without-dependency-information.*")
|
||||
addFilter(".*useless-provides.*")
|
||||
addFilter(".*zero-length.*/etc/skel/\..*")
|
||||
addFilter(".*call-to-mktemp.*/usr/bin/bash.*")
|
||||
|
@ -7,9 +7,9 @@ version=$(sed -rn '/^%define[[:space:]]+bversion/{s/^%define[[:space:]]+bversion
|
||||
test -e ${sourcedir}/bash-${version}.tar.gz || exit 1
|
||||
last=($(tar Oxf ${sourcedir}/bash-${version}.tar.gz bash-${version}/configure.ac | sed -rn '/^define.bashvers/{s/^define\(bashvers,[[:space:]]([0-9\.]+)\)/\1/p}')) || exit 1
|
||||
test -e ${sourcedir}/bash-${version}-patches.tar.bz2 || echo ${last[0]}
|
||||
tar --wildcards -tf ${sourcedir}/bash-${version}-patches.tar.bz2 '*/bash[0-9][0-9]-[0-9]*' &> /dev/null || echo ${last[0]}
|
||||
tar --wildcards -tf ${sourcedir}/bash-${version}-patches.tar.bz2 '*/bash[0-9][0-9]-*[0-9]' &> /dev/null || echo ${last[0]}
|
||||
OFS="$IFS"
|
||||
IFS=-
|
||||
last=($(tar -tf ${sourcedir}/bash-${version}-patches.tar.bz2 | sed -r 's@\.patch$@@'| sort -t '-' -k 3,3 -n | tail -n 1))
|
||||
last=($(tar --wildcards -tf ${sourcedir}/bash-${version}-patches.tar.bz2 '*/bash[0-9][0-9]-*[0-9]' | sed -r 's@\.patch$@@'| sort -t '-' -k 3,3 -n | tail -n 1))
|
||||
IFS="$OFS"
|
||||
echo ${last[3]/*0/}
|
||||
|
Loading…
Reference in New Issue
Block a user