summary refs log tree commit diff
diff options
context:
space:
mode:
-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 '+/==>'