From 15ccf66f598ed9e3b6ec4f17769062d90db48de2 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Thu, 2 Jan 2020 00:29:57 -0500 Subject: [PATCH] fish: simplify xq commands and make them more useful --- fish/void-quick | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/fish/void-quick b/fish/void-quick index febbce7..0695b43 100644 --- a/fish/void-quick +++ b/fish/void-quick @@ -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