From 30d36bbfe649b0c6e848f13d74d287c9e08dd78e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 23 Jul 2018 04:31:00 +0000 Subject: [PATCH] scripts/generate-kernel-patch: Make the patch format more standard Make sure that both paths in the diff header have the same number of components. This patch does not change the result of applying a patch generated by this script. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7441 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/generate-kernel-patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index c3221eaf0..2ff3ca1e3 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -48,8 +48,8 @@ function add_patch { exit 1 fi - sed -e "s:^--- [^ ]*:--- orig/linux-${kver}/$2:" \ - -e "s:^+++ [^ ]*:+++ linux-${kver}/$2:" \ + sed -e "s:^--- [^ ]*:--- linux-${kver}/$2:" \ + -e "s:^+++ [^ ]*:+++ linux-${kver}/$2:" \ < "$1" } @@ -70,8 +70,8 @@ function add_file { # -- skip *.mod.c. if [ "$1" = "${1%.mod.c}" ] && [ "$1" ]; then cat </dev/null; }) @@ EOF @@ -94,8 +94,8 @@ EOF function add_empty_file { cat <