summaryrefslogtreecommitdiff
path: root/source/ap/slackpkg/files/filelist.awk
blob: 291624b84917f7033b5f5acc68c4d77bcca8331e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
BEGIN {
  starting = 1
}

/^\|\|[[:blank:]]+Package:[[:blank:]]+.*-[[:alnum:]_]+-[[:alnum:]_.]+\.t[blxg]z$/ {
  if( starting == 1 )
    starting = 0
  else
    printf( "\n" )
  printf( "%s ", $3 )
  show = 1
}

/^\|\|[[:blank:]]+Package:[[:blank:]]+/ && !/t[blxg]z/ {
	show = 0
}

/^[-bcdlps][-r][-w][-xsS][-r][-w][-xsS][-r][-w][-xtT][[:space:]]/ {
  if( show == 1 ) {
	printf( "%s ", $6 )
  }
}



END {
  printf( "\n" )
}