about summary refs log tree commit diff
path: root/xbarf
blob: 84952fac5f0c668892c233ff94f3405f88444620 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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 '+/==>'