about summary refs log tree commit diff
path: root/xnodev
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-02-10 11:18:08 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-02-10 11:18:08 +0100
commit844374fb0f6f1e3b7f3a322e02fdbcde184502ae (patch)
tree9b8ff5b6b997c85e8955b3584d17312e76dfe5c4 /xnodev
parent88eee86c6e223d7780db6cf18799ad3b814d0dd8 (diff)
downloadxtools-844374fb0f6f1e3b7f3a322e02fdbcde184502ae.tar.gz
xtools-844374fb0f6f1e3b7f3a322e02fdbcde184502ae.tar.xz
xtools-844374fb0f6f1e3b7f3a322e02fdbcde184502ae.zip
add xnodev
Diffstat (limited to 'xnodev')
-rwxr-xr-xxnodev11
1 files changed, 11 insertions, 0 deletions
diff --git a/xnodev b/xnodev
new file mode 100755
index 0000000..d146a15
--- /dev/null
+++ b/xnodev
@@ -0,0 +1,11 @@
+#!/bin/bash
+# xnodev - list not installed -devel packages for installed packages
+
+xbps-query -Rs '' | sed 's/^.\(.\). \([^ ]*\)-.* .*/\1 \2/' | sort -k2 | awk '
+	$1 == "-" && $2 ~ "-devel" {
+		b = $2
+		sub("-devel", "", b)
+		if (s[b]) print $2
+	}
+	$1 == "*" { s[$2] = 1 }
+'