diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-09-23 15:15:58 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-09-23 15:15:58 +0200 |
commit | 851321b76336ac9ab85b30c447b6ea7c622991a2 (patch) | |
tree | f400b7ea6ee6849b1a50ba2bfe7f1adda6c8d708 | |
parent | 4fc6fbf76f1b9ed06c281b314925f694f7ece72a (diff) | |
download | xtools-851321b76336ac9ab85b30c447b6ea7c622991a2.tar.gz xtools-851321b76336ac9ab85b30c447b6ea7c622991a2.tar.xz xtools-851321b76336ac9ab85b30c447b6ea7c622991a2.zip |
add xrs
-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 "$@" |