about summary refs log tree commit diff
path: root/xrecent
blob: 8fb12d2e30736cfa07cccdae477c7b86251ea342 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# xrecent [REPOURL|XBPS_ARCH] - list packages in repo ordered by build date

repo=http://repo.voidlinux.net/current/
case "$1" in
*/*)
	repo=$1;;
*-musl)	
	repo=http://muslrepo.voidlinux.net/current/
	export "XBPS_ARCH=$1";;
?*)
	repo=http://repo.voidlinux.net/current/
	export "XBPS_ARCH=$1";;
esac

xbps-query -M -i -R --repository=$repo -p build-date -s '' |
	sed 's/: /	/' |
	sort -t '	' -k 2 |
	column -s '	' -t