diff options
Diffstat (limited to 'xrs')
-rwxr-xr-x | xrs | 12 |
1 files changed, 12 insertions, 0 deletions
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 "$@" |