#!/bin/sh
#
# filter for converting the all_tars listing found one the suse linux-cds.
#
# usage: zcat /cdrom/ls-all-tars.gz | ./ff_alltars | mk_ff -f tar > alltars.ff
#
# (you may have to change the diskset string below)

awk 'BEGIN { diskset="S.u.S.E. 02/96 Disk "; comment=""; tar="" }
/^---/	{
	    next;
	}

	{
	    if ($1 != comment)
	    {
		comment = $1;
		clen = length($1);
		tar=substr($1, match($1, "[^/]*$"), 999);
		print "COMMENT: " diskset substr($1, 5, 1) ": " substr($1, 7, 999);
	    }
	    print $3 " qwe/qwe " $5 " " $6 " " $7 " " $8 " " $9 " " tar ":" $10
	}
'
