]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
c2p updates
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Feb 2011 17:16:27 +0000 (09:16 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Feb 2011 17:16:27 +0000 (09:16 -0800)
scripts/c2p

index d0398edce71faf3b2fd8db1298b0e15bae431212..6a64ef127c98a5c32763dd12dc8087535532b7d0 100755 (executable)
@@ -13,11 +13,17 @@ my $git_id;
 my $header_complete = "false";
 my $tmpfile;
 
+$numArgs = $#ARGV + 1;
+if ($numArgs != 1) {
+       print "must provide git id\n";
+       exit;
+}
+
 $base_id = shift;
 
 if ($base_id eq "") {
        print "must provide git id\n";
-       die;
+       exit;
 }
 
 #print "handing commit id $base_id\n";
@@ -54,10 +60,15 @@ close FILE;
 #print "$tmpfile\n";
 
 system "vim $tmpfile";
+system "reset";
 $new_file = `rename-patch $tmpfile`;
 chomp($new_file);
 system "mv $new_file ~/linux/stable/";
-print "moved $new_file to ~/linux/stable/\n"
+#print "moved $new_file to ~/linux/stable/\n";
+
+system "cd ~/linux/stable && ./apply_it $new_file";
+system "cp ~/linux/stable/$new_file ~/linux/longterm";
+system "cd ~/linux/longterm && ./apply_it $new_file";
 
 #TMPFILE1=`mktemp patch.XXXXXX` || exit 1
 #TMPFILE2=`mktemp patch.XXXXXX` || exit 1