fish: simplify xq commands and make them more useful

master
an 2020-01-02 00:29:57 -05:00
parent ad6d329bbc
commit 15ccf66f59
1 changed files with 7 additions and 11 deletions

View File

@ -13,19 +13,15 @@ end
function xqcheck -d "Quickly lints our packages"
xqdir
set f (mktemp)
./xbps-src update-check (xqsrcpkgs) > "$f"
xlint srcpkgs/{(xqsrcpkgs)}/template > "$f"
less "$f"
rm "$f"
begin
for pkg in (xqsrcpkgs)
./xbps-src update-check $pkg
xlint srcpkgs/$pkg/template
end
end 2>&1 | tee /tmp/xqcheck.log | less +F
end
function xqrebuild -d "Rebuild some of our srcpkgs"
xqdir
set f (mktemp)
xbulk $argv 2> "$f"
if test -s "$f"
less "$f"
end
rm "$f"
xbulk $argv 2>&1 | tee /tmp/xqrebuild.log | less +F
end