mirror of
https://github.com/rworkman/slackpkg
synced 2024-11-17 07:48:12 +01:00
28 lines
424 B
Awk
28 lines
424 B
Awk
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" )
|
|
}
|