about summary refs log tree commit diff
path: root/xrs
blob: b82915cbe069e09c4496d9da873e3f92aeeda322 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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 "$@"