]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
script/c2p: allow multiple kernel versions on the command line
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2019 09:06:39 +0000 (10:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2019 09:06:39 +0000 (10:06 +0100)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/c2p

index 9575cfb8881797c8645eaf6989273eff18ec290b..9cb65a67e2ade254c38f302e6e266687da5198fe 100755 (executable)
@@ -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";