diff options
-rw-r--r-- | README | 1 | ||||
-rwxr-xr-x | xrs | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/README b/README index c915e18..09056ba 100644 --- a/README +++ b/README @@ -30,6 +30,7 @@ https://github.com/voidlinux/xbps 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 + xrs PATTERN - like xbps-query -Rs, but take cwd repo into account xsrc PKG - list source files for XBPS template xsubpkg PKG - lists all subpackages of a package diff --git a/xrs b/xrs new file mode 100755 index 0000000..b82915c --- /dev/null +++ b/xrs @@ -0,0 +1,12 @@ +#!/bin/sh +# xrs PATTERN - like xbps-query -Rs, but take cwd repo into account + +BRANCH=$(git symbolic-ref -q --short HEAD 2>/dev/null) +ADDREPO="--repository=hostdir/binpkgs/$BRANCH + --repository=../hostdir/binpkgs/$BRANCH + --repository=../../hostdir/binpkgs/$BRANCH + --repository=hostdir/binpkgs + --repository=../hostdir/binpkgs + --repository=../../hostdir/binpkgs" + +xbps-query $ADDREPO -Rs "$@" |