diff options
Diffstat (limited to 'xrecent')
-rwxr-xr-x | xrecent | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/xrecent b/xrecent new file mode 100755 index 0000000..8fb12d2 --- /dev/null +++ b/xrecent @@ -0,0 +1,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 |