diff options
author | Erich Eckner <git@eckner.net> | 2020-06-08 11:14:45 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-06-08 11:14:45 +0200 |
commit | 273917825e04f7a24629ea4547d740b832fdb5d5 (patch) | |
tree | 14a2b4d5ffeb7611b9996708492390386d2b4c0b /openttd-git/update-patches | |
parent | eb404a52d784326cffa5c54cb0f70432b8a5cb3b (diff) | |
download | archlinuxewe-273917825e04f7a24629ea4547d740b832fdb5d5.tar.xz |
openttd-git: 29472.012fea301-1 -> 29487.90e849198-1
Diffstat (limited to 'openttd-git/update-patches')
-rwxr-xr-x | openttd-git/update-patches | 51 |
1 files changed, 12 insertions, 39 deletions
diff --git a/openttd-git/update-patches b/openttd-git/update-patches index 7b2e04b9d..1ad649aea 100755 --- a/openttd-git/update-patches +++ b/openttd-git/update-patches @@ -10,43 +10,16 @@ eval "$( makepkg --verifysource git -C openttd-git fetch local git -C openttd-git fetch --all -p +updpkgsums -sums=$( - { - printf '%s\n' "${source[@]}" \ - | sed ' - s/\.patch$// - t - s/^.*$/SKIP/ - w /dev/stderr - d - ' \ - | while read -r patch; do - git -C openttd-git diff $(git -C openttd-git merge-base master "remotes/local/${patch}") "remotes/local/${patch}" -- \ - > "${patch}.patch" - sha512sum "${patch}.patch" | \ - awk '{print $1}' - done - } 2>&1 \ - | sed ' - s/^/'"'"'/ - s/$/'"'"'/ - 1 s/^/sha512sums=(/ - 1! s/^/ / - $ s/$/)/ - ' \ - | sed ' - :a - N - $! ba - s/\n/\\n/g - ' -) - -sed -i ' - /^sha512sums=(/,/^[^#]*)$/ { - s/^sha512sums=(.*$/'"${sums}"'/ - t - d - } -' PKGBUILD +printf '%s\n' "${source[@]}" \ +| sed ' + s/\.patch$// + t + d +' \ +| while read -r patch; do + git -C openttd-git diff $(git -C openttd-git merge-base master "remotes/local/${patch}") "remotes/local/${patch}" -- \ + > "${patch}.patch" +done +updpkgsums |