about summary refs log tree commit diff
path: root/xrecent
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-06-27 15:30:35 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-06-27 15:30:35 +0200
commitd9c6bcf15cbb83488d355640e5e2b501d6044330 (patch)
tree744b009cfccccb707e8d250a41f40494abce832b /xrecent
parentaee8196660a9101ac0305b1cbbe9d85bd014551b (diff)
downloadxtools-d9c6bcf15cbb83488d355640e5e2b501d6044330.tar.gz
xtools-d9c6bcf15cbb83488d355640e5e2b501d6044330.tar.xz
xtools-d9c6bcf15cbb83488d355640e5e2b501d6044330.zip
add xrecent
Diffstat (limited to 'xrecent')
-rwxr-xr-xxrecent19
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