From 9caa6e447c4f49893606e4c38fa8d579e7c2a0fb Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 11 Nov 2008 18:39:28 -0500 Subject: [PATCH] Use the .KSPLICE_presrc extension for backing up changed source files. Signed-off-by: Anders Kaseorg --- ksplice-create.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ksplice-create.in b/ksplice-create.in index 8e3a8a2..406df52 100644 --- a/ksplice-create.in +++ b/ksplice-create.in @@ -124,7 +124,7 @@ push(@make_ksplice, "KSPLICE_BUILD_MODULES=1") if ($build_modules); sub revert_orig() { for(split(/\0/, runstr(qw(find -name *.KSPLICE_* -print0)))) { - if(my ($file) = m/^(.*)\.KSPLICE_pre$/) { + if(my ($file) = m/^(.*)\.KSPLICE_pre(?:src)?$/) { if ($series) { unlink($_); } else { @@ -183,7 +183,7 @@ runval(@make_kmodsrc); @patch_opt = ("-s", @patch_opt) if ($Verbose::level < 0); -runval_infile($patchfile, "patch", @patch_opt, "-bz", ".KSPLICE_pre"); +runval_infile($patchfile, "patch", @patch_opt, "-bz", ".KSPLICE_presrc"); push @make_ksplice, "KSPLICE_EXTRA_MATCH=@extra_match" if (@extra_match); push @make_ksplice, "KSPLICE_ONLY_TARGETS=@only_targets" if (@only_targets); if(runval_raw(@make_ksplice, "KSPLICE_MODE=diff") != 0) { @@ -203,7 +203,7 @@ sub copy_debug { mkdir("$tmpdir/objects"); for (split(/\0/, runstr(qw(find -name *.KSPLICE* ! ( -name *.KSPLICE -empty ) ! -name .*.KSPLICE.cmd -print0)))) { copy_debug($_); - copy_debug($1) if (m/^(.*)\.KSPLICE_pre$/); + copy_debug($1) if (m/^(.*)\.KSPLICE_pre(?:src)$/); } my @modulepaths = (); -- 2.11.4.GIT