summaryrefslogtreecommitdiff
path: root/bumpVersion
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-24 09:16:15 +0200
committerErich Eckner <git@eckner.net>2019-09-24 09:16:15 +0200
commitb3f4585b3ff2d9827d8a6826fcb66d02f3f05dc7 (patch)
tree3279a7f55d7e0eda8cbc9bd5450c929f81d4b27d /bumpVersion
parent7759405ae3fb2a6394b526f290c84f150db9b578 (diff)
downloadarchlinuxewe-b3f4585b3ff2d9827d8a6826fcb66d02f3f05dc7.tar.xz
bumpPkgrel, bumpVersion: correctly handle git submodules
Diffstat (limited to 'bumpVersion')
-rwxr-xr-xbumpVersion10
1 files changed, 9 insertions, 1 deletions
diff --git a/bumpVersion b/bumpVersion
index 8ccd45116..30523ecd3 100755
--- a/bumpVersion
+++ b/bumpVersion
@@ -172,6 +172,14 @@ if [ "${paket}" != 'qgis-git' ]; then
makepkg -fcsr --noconfirm --asdeps || exit 1
namcap "$(makepkg --packagelist)" || exit 1
fi
-git commit PKGBUILD -m "${paket} ${pkgver}-${pkgrel} -> ${remVer}-1"
+if [ -d '.git' ] || [ -f '.git' ]; then
+ makepkg --printsrcinfo > .SRCINFO
+ git commit 'PKGBUILD' '.SRCINFO' -m "${paket} ${pkgver}-${pkgrel} -> ${remVer}-1"
+ git push || exit 1
+ cd ..
+ git commit "${paket}" -m "${paket} ${pkgver}-${pkgrel} -> ${remVer}-1"
+else
+ git commit 'PKGBUILD' -m "${paket} ${pkgver}-${pkgrel} -> ${remVer}-1"
+fi
>&2 echo '... done'