about summary refs log tree commit diff
path: root/xbarf
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-07-23 16:30:31 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-07-23 16:30:31 +0200
commitb0666b13900b6f563728fdd4d160343f016f7a22 (patch)
tree46c978f6dbcf42b1c34104f53e2e0bdd41913284 /xbarf
parentf71bc5671244b33858c9fc05aa4498c61d035d93 (diff)
downloadxtools-b0666b13900b6f563728fdd4d160343f016f7a22.tar.gz
xtools-b0666b13900b6f563728fdd4d160343f016f7a22.tar.xz
xtools-b0666b13900b6f563728fdd4d160343f016f7a22.zip
add xbarf v0.26
Diffstat (limited to 'xbarf')
-rwxr-xr-xxbarf13
1 files changed, 13 insertions, 0 deletions
diff --git a/xbarf b/xbarf
new file mode 100755
index 0000000..84952fa
--- /dev/null
+++ b/xbarf
@@ -0,0 +1,13 @@
+#!/bin/sh
+# xbarf - display build logs of last build
+
+cd $(xdistdir) &&
+logdir="$(ls -1td masterdir*/builddir/.xbps-* | sed 1q)" &&
+ls -1tr "$logdir"/*.log |
+	grep -v _bdep_ |
+	while read -r file; do
+		printf "==> %s\n" "${file##*/}"
+		cat "$file"
+		printf "\n\n"
+	done |
+	less -R '+/==>'