diff options
Diffstat (limited to 'files/filelist.awk')
-rw-r--r-- | files/filelist.awk | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/files/filelist.awk b/files/filelist.awk new file mode 100644 index 0000000..291624b --- /dev/null +++ b/files/filelist.awk @@ -0,0 +1,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" ) +} |