diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-08 00:36:59 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-08 03:14:52 +0200 |
commit | 60e2e7ad61648cf5fb18f79c8c8362623227635a (patch) | |
tree | 1723e3b50d6544b6a745e6276f5177dd46f05575 /kernel-tree-scripts | |
parent | b09de1f158b7b4ed69265edda4c411791602badd (diff) |
create-patch: blacklist instead of whitelist
This will deal with filename changes more gracefully.
Reported-by: Jordan Glover <Golden_Miller83@protonmail.ch>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'kernel-tree-scripts')
-rwxr-xr-x | kernel-tree-scripts/create-patch.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel-tree-scripts/create-patch.sh b/kernel-tree-scripts/create-patch.sh index 6a37229..bb3fa2b 100755 --- a/kernel-tree-scripts/create-patch.sh +++ b/kernel-tree-scripts/create-patch.sh @@ -7,7 +7,8 @@ shopt -s globstar WG="$(readlink -f "$(dirname "$(readlink -f "$0")")/../../src/")" -for i in "$WG"/*.c "$WG"/*.h "$WG"/uapi/*.h "$WG"/selftest/*.h "$WG"/Kbuild "$WG"/Kconfig "$WG"/crypto/**/*.c "$WG"/crypto/**/*.h "$WG"/crypto/**/*.S "$WG"/crypto/**/*.include "$WG"/compat/**/*.c "$WG"/compat/**/*.h "$WG"/compat/**/*.include; do +for i in "$WG"/**/{*.c,*.h,*.S,*.include} "$WG/Kbuild" "$WG/Kconfig"; do + [[ $i == "$WG/tools/"* || $i == "$WG/tests/"* ]] && continue diff -u /dev/null "$i" | sed "s:${WG}:b/net/wireguard:;s:Kbuild:Makefile:" done |