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"
|
function xqcheck -d "Quickly lints our packages"
|
||||||
xqdir
|
xqdir
|
||||||
set f (mktemp)
|
begin
|
||||||
./xbps-src update-check (xqsrcpkgs) > "$f"
|
for pkg in (xqsrcpkgs)
|
||||||
xlint srcpkgs/{(xqsrcpkgs)}/template > "$f"
|
./xbps-src update-check $pkg
|
||||||
less "$f"
|
xlint srcpkgs/$pkg/template
|
||||||
rm "$f"
|
end
|
||||||
|
end 2>&1 | tee /tmp/xqcheck.log | less +F
|
||||||
end
|
end
|
||||||
|
|
||||||
function xqrebuild -d "Rebuild some of our srcpkgs"
|
function xqrebuild -d "Rebuild some of our srcpkgs"
|
||||||
xqdir
|
xqdir
|
||||||
set f (mktemp)
|
xbulk $argv 2>&1 | tee /tmp/xqrebuild.log | less +F
|
||||||
xbulk $argv 2> "$f"
|
|
||||||
if test -s "$f"
|
|
||||||
less "$f"
|
|
||||||
end
|
|
||||||
rm "$f"
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue