summaryrefslogtreecommitdiff
path: root/bumpPkgrel
diff options
context:
space:
mode:
Diffstat (limited to 'bumpPkgrel')
-rwxr-xr-xbumpPkgrel19
1 files changed, 19 insertions, 0 deletions
diff --git a/bumpPkgrel b/bumpPkgrel
index 186256399..343474554 100755
--- a/bumpPkgrel
+++ b/bumpPkgrel
@@ -85,6 +85,25 @@ if [ $# -ne 1 ] || ${auto_detect}; then
| sort -u \
| xargs -rn1 "$0" ${commit_flag} -p "${provided}"
+ if ${auto_detect}; then
+ python_version=$(
+ sed '
+ s/^\(3\.[0-9]\+\)\(\.[0-9.]\+\)\? python$/\1/
+ t
+ d
+ ' "${provided}"
+ )
+ if cat "${0%/*}"/*/PKGBUILD \
+ | sed '
+ s/^\(.* \)\?\(["'"'"']\)\?\(python>=[0-9.]\+\)\2\( .*\)\?$/\3/
+ t
+ d
+ ' \
+ | grep -qvxF "python>=${python_version}"; then
+ "${0%/*}/bumpPython" 3
+ fi
+ fi
+
else
cd "$(dirname "$0")"