about summary refs log tree commit diff
path: root/xpstree
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-06-04 22:57:26 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-06-04 22:57:26 +0200
commit07e3120280f47ea48fdc935edab9a82cf61308ac (patch)
tree0c73b9d847dd3bdc07cae45345d2c1a2f67d69e4 /xpstree
parent0f2ee339ae133e7de9045d3c7d480335a8144cd7 (diff)
downloadxtools-07e3120280f47ea48fdc935edab9a82cf61308ac.tar.gz
xtools-07e3120280f47ea48fdc935edab9a82cf61308ac.tar.xz
xtools-07e3120280f47ea48fdc935edab9a82cf61308ac.zip
add xpstree
Diffstat (limited to 'xpstree')
-rw-r--r--xpstree8
1 files changed, 8 insertions, 0 deletions
diff --git a/xpstree b/xpstree
new file mode 100644
index 0000000..d49d590
--- /dev/null
+++ b/xpstree
@@ -0,0 +1,8 @@
+#!/bin/sh
+# xpstree - display tree view of xbps-src processes
+
+ps -o pid,etime,cmd -H xww |
+	sed -n 's,      , ,;
+		s,  [^ ]* /void-packages/xbps-src,xbps-src,p;
+		s,  [^ ]* /void-packages/.*/build.sh \([^ ]*\).*,\1,p;'
+