jdk/makefiles/sun/awt/CondenseRules.awk
author ohair
Tue, 10 Apr 2012 08:22:03 -0700
changeset 12317 9670c1610c53
permissions -rw-r--r--
7074397: Build infrastructure changes (makefile re-write) Summary: New makefiles transition, old and new living side by side for now. Reviewed-by: ohair, jjg, dholmes, ohrstrom, erikj, ihse, tgranat, ykantser Contributed-by: ohrstrom <fredrik.ohrstrom@oracle.com>, erikj <erik.joelsson@oracle.com>, ihse <magnus.ihse.bursie@oracle.com>, tgranat <torbjorn.granat@oracle.com>, ykantser <yekaterina.kantserova@oracle.com>

BEGIN {
    previous="";
    prefix="";
    ORS="";
    OFS="";
} 
{
    if ($1 != previous) { 
	if (previous != "") {
	    print "\n\n";
	}
	previous = $1;
    	print $1;
	prefix="\t";
    }
    print prefix $2;
    prefix=" ";
}
END {
    print "\n";
}