fish: simplify xq commands and make them more useful
parent
ad6d329bbc
commit
15ccf66f59
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue