diff options
author | Erich Eckner <git@eckner.net> | 2019-01-10 11:34:59 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-01-10 11:34:59 +0100 |
commit | c6ce0195cb5ea8bcb092190e3e45fb42fad6cf33 (patch) | |
tree | 1831e3fa24175b67b5e3624635eabea08d2529f8 /openttd-git/update-patches | |
parent | 154965bb0a96db004e56d8c7b3b69f4c6c58c07c (diff) | |
download | archlinuxewe-c6ce0195cb5ea8bcb092190e3e45fb42fad6cf33.tar.xz |
openttd-git: update-patches neu zum einfacheren aktualisieren der Patches
Diffstat (limited to 'openttd-git/update-patches')
-rwxr-xr-x | openttd-git/update-patches | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/openttd-git/update-patches b/openttd-git/update-patches new file mode 100755 index 000000000..02811856f --- /dev/null +++ b/openttd-git/update-patches @@ -0,0 +1,22 @@ +#!/bin/bash + +cd "$(dirname "$0")" +eval "$( + sed -n ' + /^source=(/,/)/ p + ' PKGBUILD +)" + +git -C openttd-git fetch local +git -C openttd-git fetch --all -p + +printf '%s\n' "${source[@]}" \ + | sed ' + s/\.patch$// + t + d + ' \ + | while read -r patch; do + git -C openttd-git diff master "remotes/local/${patch}" -- \ + > "${patch}.patch" + done |