From d9c6bcf15cbb83488d355640e5e2b501d6044330 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 27 Jun 2015 15:30:35 +0200 Subject: add xrecent --- README | 1 + xrecent | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 xrecent diff --git a/README b/README index 4f9efa8..845f330 100644 --- a/README +++ b/README @@ -25,6 +25,7 @@ https://github.com/voidlinux/xbps xoptdiff [-q] [PKGS...] - show template options which differ from binary package xpstree - display tree view of xbps-src processes xq [-R] PKGS... - query information about XBPS package + xrecent [REPOURL|XBPS_ARCH] - list packages in repo ordered by build date xrevbump MESSAGE TEMPLATES... - increase template revision and commit xsrc PKG - list source files for XBPS template xsubpkg PKG - lists all subpackages of a package 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 -- cgit 1.4.1