|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T f
Length: 829 (0x33d) Types: TextFile Names: »fixindex.awk«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z« └─⟦2109abc41⟧ └─⟦this⟧ »./X.V10R4/doc/Xlib/fixindex.awk«
BEGIN { FS = "\t"; } NR == 1 { if ($3 != "") printf(".Ib \"%s\"\n", $2); major = $2; minor = $3; pageno = $1; pagelist = $1; } NR != 1 { if ($2 == major && $3 == minor) # neither has changed { if ($1 != pageno) # new page number, append pagelist = pagelist "," $1; } else # one has changed { if (minor != "") # dump full record printf(".I< \"%s\" \"%s\" \"%s\"\n", major, minor, pagelist); else printf(".I> \"%s\" \"%s\"\n", major, pagelist); pagelist = $1; # restart pagelist if ($2 != major && $3 != "") # major has changed, minor not null printf(".Ib \"%s\"\n", $2); } major = $2; minor = $3; pageno = $1; } END { if (minor != "") # dump full record printf(".I< \"%s\" \"%s\" \"%s\"\n", major, minor, pagelist); else printf(".I> \"%s\" \"%s\"\n", major, pagelist); }