Re: apm suspend broken in 2.4.10

From: Keith Owens (kaos@ocs.com.au)
Date: Fri Sep 28 2001 - 05:05:35 EST


On Fri, 28 Sep 2001 11:09:23 +0200,
jc <jcb@jcb.yi.org> wrote:
>how could i get the list of files that changed between 2.4.9 and 2.4.10
>concerning apm ?

diff -urN -I '$[ABD-Z].*\$' 2.4.9 2.4.10 > /var/tmp/patch-2.4.9-2.4.10
rm -rf /var/tmp/patches
split_patch /var/tmp/patch-2.4.9-2.4.10

Look through /var/tmp/patches for files and directories related to apm.
split_patch is

#!/usr/bin/perl -w
$out = "";
while (<>) {
        next if (/^Only/);
        next if (/^Binary/);
        if (/^diff/ || /^Index/) {
                if ($out) {
                        close OUT;
                }
                (@out) = split(' ', $_);
                shift(@out) if (/^diff/);
                $out = pop(@out);
                $out =~ s:/*usr/:/:;
                $out =~ s:/*src/:/:;
                $out =~ s:^/*linux[^/]*::;
                $out =~ s:\(w\)::;
                next if ($out eq "");
                $out = "/var/tmp/patches/$out";
                $dir = $out;
                $dir =~ s:/[^/]*$::;
                print STDERR "$out\n";
                system("mkdir -p $dir");
                open(OUT, ">$out") || die("cannot open $out");
        }
        if ($out) {
                print OUT $_;
        }
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Sep 30 2001 - 21:01:01 EST