summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-11-14 23:02:06 +0100
committerErich Eckner <git@eckner.net>2019-11-14 23:02:06 +0100
commitc64c42b1fe719e8348fcdced3848cc9eb19df848 (patch)
tree8cf013e2e0e6613122f468e689ff0495802c7a29
parentf5fcad7e66361f64763ade864f1eb40e3770dda5 (diff)
downloadarchlinuxewe-c64c42b1fe719e8348fcdced3848cc9eb19df848.tar.xz
bumpPython: correctly handle submodules
-rwxr-xr-xbumpPython11
1 files changed, 10 insertions, 1 deletions
diff --git a/bumpPython b/bumpPython
index ddb40d7d6..c7eb39166 100755
--- a/bumpPython
+++ b/bumpPython
@@ -53,7 +53,16 @@ for pkgbuild in "${pkgbuilds[@]}"; do
s@'"'python>=${pymajor}\.[0-9]\+'@'python>=${pyver}'"'@
s@'"'python<${pymajor}\.[0-9]\+'@'python<${pyverupper}'"'@
' "${pkgbuild}"
- git add "${pkgbuild}"
+ if [ -d "${pkgbuild%/*}"'/.git' ] || [ -f "${pkgbuild%/*}"'/.git' ]; then
+ cd "${pkgbuild%/*}"
+ makepkg --printsrcinfo > .SRCINFO
+ git commit 'PKGBUILD' '.SRCINFO' -m "${pkgbuild%/*}: rebuild against new python ${pyver}"
+ git push || exit 1
+ cd ..
+ git add "${pkgbuild%/*}"
+ else
+ git add "${pkgbuild}"
+ fi
done