On Tue, Jan 21, 2014 at 03:36:16PM -0800, Tim Chen wrote: > From: Peter Zijlstra <peterz@xxxxxxxxxxxxx> > > We perform a clean up of the Kbuid files in each architecture. > We order the files in each Kbuild in alphabetical order > by running the below script on each Kbuild file: > > gawk '/^generic-y/ { > i = 3; > do { > for (; i<=NF; i++) { > if ($i == "\\") { > getline; > i=1; > continue; > } > if ($i != "") > hdr[$i] = $i; > } > break; > } while (1); > next; > } > END { > n = asort(hdr); > for (i=1; i<=n; i++) > print "generic-y += " hdr[i]; > }' > I'll probably have to regenerate this patch once the merge window is done, but that's no biggie. sfr, you might want to keep this script handy and distribute to others who are lazy and don't want to sort by hand. I suppose running it requires a little something like: for i in arch/*/include/asm/Kbuild do cat $i | gawk .... > ${i}.sorted; mv ${i}.sorted $i; done -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>