From a02dd1f0eff0d6902123dfce1a0388c7e5cc0ba2 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 4 Feb 2019 10:06:39 +0100 Subject: [PATCH] script/c2p: allow multiple kernel versions on the command line Signed-off-by: Greg Kroah-Hartman --- scripts/c2p | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/c2p b/scripts/c2p index 9575cfb8881..9cb65a67e2a 100755 --- a/scripts/c2p +++ b/scripts/c2p @@ -15,7 +15,7 @@ my $signed_off_by_seen = "false"; my $signed_off_by_complete = "false"; my $eat_subject_trailer = "false"; my $tmpfile; -my $kernel_version; +#my $kernel_version; $SIG{__DIE__} = sub @@ -40,10 +40,10 @@ if ($base_id eq "") { exit; } -$kernel_version = shift; -if (!defined($kernel_version)) { - $kernel_version = ""; -} +#$kernel_version = shift; +#if (!defined($kernel_version)) { +# $kernel_version = ""; +#} #print "handing commit id $base_id\n"; @@ -119,7 +119,8 @@ chomp($new_file); system "mv $new_file ~/linux/stable/"; #print "moved $new_file to ~/linux/stable/\n"; -system "cd ~/linux/stable && ./apply_it $new_file $kernel_version"; +print "cd ~/linux/stable && ./apply_it $new_file @ARGV\n"; +system "cd ~/linux/stable && ./apply_it $new_file @ARGV"; #system "cp ~/linux/stable/$new_file ~/linux/longterm"; #system "cd ~/linux/longterm && ./apply_it $new_file"; -- 2.47.2