diff options
-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 |