jdk/make/sun/awt/CondenseRules.awk
author xdono
Tue, 12 Aug 2008 15:17:12 -0700
changeset 922 8725ccb1a22d
parent 2 90ce3da70b43
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
BEGIN {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
    previous="";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
    prefix="";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
    ORS="";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
    OFS="";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
} 
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
    if ($1 != previous) { 
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
	if (previous != "") {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
	    print "\n\n";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
	}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
	previous = $1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
    	print $1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
	prefix="\t";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
    print prefix $2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
    prefix=" ";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
END {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
    print "\n";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
}