index : devops | |
Archlinux32 devs' convenience-scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-01-28 09:41:41 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-01-28 09:41:41 +0100 |
commit | 486c4f5f29d014e67b9b84f99eda98acfc5048dc (patch) | |
tree | 817c88ee4d22dfa219a174ec4d6492cf92289529 /update-archlinux32-package | |
parent | 428575acd9728473516d0a7876e43ec4023090ee (diff) |
-rwxr-xr-x | update-archlinux32-package | 24 |
diff --git a/update-archlinux32-package b/update-archlinux32-package index 5418d09..b92505f 100755 --- a/update-archlinux32-package +++ b/update-archlinux32-package @@ -93,8 +93,9 @@ case "${pkgname}" in update_path='checksum' ;; 'python-pip-bootstrap') - # a package without upstream which is updated by solely updating its checksum - update_path='checksum without upstream' + # a package without upstream which is updated by updating its + # version (according to watch-versions) and checksum + update_path='version and checksum without upstream' ;; 'linux'|'linux-lts'|'linux-zen') # a kernel which exists upstream -> different config and checksums @@ -236,7 +237,24 @@ case ${update_path} in fi git -C "${git_repo_path}" commit "${repo}/${pkgname}/PKGBUILD" -m "${repo}/${pkgname}: new version => new checksum" ;; - 'checksum without upstream') + 'version and checksum without upstream') + newver=$( + "$(dirname "$(readlink -e "$0")")/watch-versions" -m "${pkgname}" \ + | sed ' + s/^newver="\([^"]\+\)";$/\1/ + t + d + ' + ) + if [ -z "${newver}" ]; then + >&2 printf 'watch-versions reports no new version for %s\n' "${pkgname}" + exit + fi + sed -i ' + s/^pkgver=.*$/pkgver='"'${newver}'"'/ + s/^pkgrel=.*$/pkgrel='"'1'"'/ + ' "${git_repo_path}/${repo}/${pkgname}/PKGBUILD" + git -C "${git_repo_path}/${repo}/${pkgname}" diff HEAD -- PKGBUILD scp -r "${git_repo_path}/${repo}/${pkgname}" \ "arch32-test:${pkgname}" sums=$( |