summary refs log tree commit diff
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
parent0f2ee339ae133e7de9045d3c7d480335a8144cd7 (diff)
downloadxtools-07e3120280f47ea48fdc935edab9a82cf61308ac.tar.gz
xtools-07e3120280f47ea48fdc935edab9a82cf61308ac.tar.xz
xtools-07e3120280f47ea48fdc935edab9a82cf61308ac.zip
add xpstree
-rw-r--r--README1
-rw-r--r--xpstree8
2 files changed, 9 insertions, 0 deletions
diff --git a/README b/README
index 3753a2a..253c219 100644
--- a/README
+++ b/README
@@ -23,6 +23,7 @@ https://github.com/voidlinux/xbps
   xnew PKG - create XBPS template template
   xnodev - list not installed -devel packages for installed packages
   xoptdiff [-q] [PKGS...] - show template options which differ from binary package
+  xpstree - display tree view of xbps-src processes
   xq [-R] PKGS... - query information about XBPS package
   xrevbump MESSAGE TEMPLATES... - increase template revision and commit
   xsrc PKG - list source files for XBPS template
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;'
+