mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [tip:core/locking] locking/mcs: Order the header files in Kbuild of each architecture in alphabetical order
       [not found] <tip-b119fa61d440fe0f5af504299ad506637585a8ca@git.kernel.org>
@ 2014-02-10 13:52 ` Peter Zijlstra
  0 siblings, 0 replies; only message in thread
From: Peter Zijlstra @ 2014-02-10 13:52 UTC (permalink / raw)
  To: mingo, dave.hansen, torvalds, peter, alex.shi, riel, arnd,
	figo1802, akpm, matthew.r.wilcox, aarcange, tglx, scott.norton,
	linux-kernel, hpa, andi, davidlohr.bueso, waiman.long,
	will.deacon, tim.c.chen, paulmck, raghavendra.kt, linux, walken,
	aswin, mingo
  Cc: linux-tip-commits

On Mon, Feb 10, 2014 at 05:32:32AM -0800, tip-bot for Tim Chen wrote:

This script is actually buggy and lost some headers; the fixed version
is as follows:

> for i in arch/*/include/asm/Kbuild
> do
>         cat $i | gawk '/^generic-y/ {
>                 i = 3;
>                 do {
			n = NF;
                        for (; i <= n; i++) {
>                                 if ($i == "\\") {
>                                         getline;
                                         i = 0;
>                                         continue;
>                                 }
>                                 if ($i != "")
>                                         hdr[$i] = $i;
>                         }
>                         break;
>                 } while (1);
>                 next;
>         }
>         // {
>                 print $0;
>         }
>         END {
>                 n = asort(hdr);
>                 for (i = 1; i <= n; i++)
>                         print "generic-y += " hdr[i];
>         }' > ${i}.sorted;
>         mv ${i}.sorted $i;
> done

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-02-10 13:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <tip-b119fa61d440fe0f5af504299ad506637585a8ca@git.kernel.org>
2014-02-10 13:52 ` [tip:core/locking] locking/mcs: Order the header files in Kbuild of each architecture in alphabetical order Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome