jdk/make/sun/awt/CondenseRules.awk
author michaelm
Tue, 06 Mar 2012 20:34:38 +0000
changeset 12047 320a714614e9
parent 2 90ce3da70b43
permissions -rw-r--r--
7113349: Initial changeset for Macosx port to jdk Reviewed-by: jjh, alanb, dholmes, anthony, ohrstrom, ksrini, jrose, weijun, smarks Contributed-by: Alan Bateman <alan.bateman@oracle.com>, Alexander Potochkin <alexander.potochkin@oracle.com>, Alexander Zuev <alexander.zuev@oracle.com>, Andrew Brygin <andrew.brygin@oracle.com>, Artem Ananiev <artem.ananiev@oracle.com>, Alex Strange <astrange@apple.com>, Bino George <bino@apple.com>, Christine Lu <christine.lu@oracle.com>, David Katleman <david.katleman@oracle.com>, David Durrence <david_durrence@apple.com>, Dmitry Cherepanov <dmitry.cherepanov@oracle.com>, Greg Lewis <glewis@eyesbeyond.com>, Kevin Miller <kevin_m_miller@apple.com>, Kurt Miller <kurt@intricatesoftware.com>, Landon Fuller <landonf@plausiblelabs.com>, Leonid Romanov <leonid.romanov@oracle.com>, Loefty Walkowiak <loefty@apple.com>, Mark Reinhold <mark.reinhold@oracle.com>, Naoto Sato <naoto.sato@oracle.com>, Philip Race <philip.race@oracle.com>, Roger Hoover <rhoover@apple.com>, Scott Kovatch <scott.kovatch@oracle.com>, Sergey ByloKhov <sergey.bylokhov@oracle.com>, Mike Swingler <swingler@apple.com>, Tomas Hurka <tomas.hurka@oracle.com>
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
}