summaryrefslogtreecommitdiffstats
path: root/files/filelist.awk
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2017-10-19 13:49:43 -0500
committerRobby Workman <rworkman@slackware.com>2017-10-22 01:59:41 -0500
commit406e0e84f5321652fa1a539d80be6ca5df1ffb1b (patch)
tree0225a21dca44efe55180ee2e83027d5eaca2ddec /files/filelist.awk
downloadslackpkg-406e0e84f5321652fa1a539d80be6ca5df1ffb1b.tar.xz
*: Initial commit of slackpkg (as of 2.82.2 release)2.82.2
Diffstat (limited to 'files/filelist.awk')
-rw-r--r--files/filelist.awk28
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" )
+}