index : devops | |
Archlinux32 devs' convenience-scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-07-01 13:54:06 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-07-01 13:54:06 +0200 |
commit | 231dd2709f60a416344d878314a39cecad8ec812 (patch) | |
tree | 0eb518211784fb85b5cf9175531af5a50c02a9e1 | |
parent | 6801a806c1f4ed6e0025f6befa4c50a24d65f8dd (diff) |
-rwxr-xr-x | update-archlinux32-package | 79 |
diff --git a/update-archlinux32-package b/update-archlinux32-package index aaece52..28190e5 100755 --- a/update-archlinux32-package +++ b/update-archlinux32-package @@ -219,52 +219,17 @@ case ${update_path} in fi scp -r "${used_upstream_git_path}/${pkgname}/repos/${repo}-${repo_arch}" \ "arch32-test:${pkgname}" - sums=$( - ssh arch32-test ' - cd "'"${pkgname}"'" - cat >> PKGBUILD - echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD - makepkg -g - ' < "${git_repo_path}/${repo}/${pkgname}/PKGBUILD" \ - | sed -n "$( - sed ' - s,^\([^[:space:]=]\+sums\(_[^[:space:]=]\+\)\?=\).*$,/^\1/ { :a; $be; N; /(.*)/ { p; d; }; :e; p }, - t - d - ' "${git_repo_path}/${repo}/${pkgname}/PKGBUILD" \ - | sort -u - )" \ - | sed ' - $! s/$/\\n/ - ' | \ - tr -d '\n' - ) - sed -i ' - /^\S\+sums\(_[^=]\+\)\?=(/{ - :a - s/^\S\+sums[^=]*=(.*)/'"${sums}"'/ - tb - $b - N - ba - :b - p - :c - s/\(^\|\n\)\S\+sums[^=]*=([^()]*)\($\|\n\)/\1\2/ - s/\n\n\+/\n/g - $! { - N - bc - } - } - ' "${git_repo_path}/${repo}/${pkgname}/PKGBUILD" - if ! cat "${used_upstream_git_path}/${pkgname}/repos/${repo}-${repo_arch}/PKGBUILD" "${git_repo_path}/${repo}/${pkgname}/PKGBUILD" \ - | ssh arch32-test ' - cd "'"${pkgname}"'" - cat > PKGBUILD - echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD - makepkg --verifysource - '; then + ssh arch32-test ' + cd "'"${pkgname}"'" + cat >> PKGBUILD + echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD + ' < "${git_repo_path}/${repo}/${pkgname}/PKGBUILD" + update_checksum + if ! ssh arch32-test ' + cd "'"${pkgname}"'" + cat > PKGBUILD + makepkg --verifysource + ' < "${git_repo_path}/${repo}/${pkgname}/PKGBUILD"; then >&2 echo 'something went wrong' exit 1 fi @@ -291,27 +256,7 @@ case ${update_path} in git -C "${git_repo_path}/${repo}/${pkgname}" diff HEAD -- PKGBUILD scp -r "${git_repo_path}/${repo}/${pkgname}" \ "arch32-test:${pkgname}" - sums=$( - ssh arch32-test ' - cd "'"${pkgname}"'" - echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD - makepkg -g - ' \ - | sed ' - $! s/$/\\n/ - ' | \ - tr -d '\n' - ) - echo "'$sums'" - sed -i ' - /^\S\+sums\(_[^=]\+\)\?=(/{ - :a - $b - N - s/^\S\+sums[^=]*=(.*)/'"${sums}"'/ - Ta - } - ' "${git_repo_path}/${repo}/${pkgname}/PKGBUILD" + update_checksum if ! ssh arch32-test ' cd "'"${pkgname}"'" cat > PKGBUILD |