From a1c1e264b943fcf5900c46d13f134c858d21ef6d Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Thu, 7 Nov 2019 23:30:12 -0500 Subject: [PATCH] fish: add more xq* commands for maintaining user repository --- fish/void-quick | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/fish/void-quick b/fish/void-quick index d9a9bd5..aa3597d 100644 --- a/fish/void-quick +++ b/fish/void-quick @@ -1,6 +1,31 @@ # vim: syntax=fish: -function xquickdir -d "Quickly sets up an environment for building packages" +function xqdir -d "Quickly sets up an environment for building packages" $_agw_dir_src/packages/void/greyserv/copy cd (xdistdir) end + +function xqsrcpkgs -d "Displays all of our srcpkgs" + for f in $_agw_dir_src/packages/void/greyserv/srcpkgs/* + echo (basename "$f") + end +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" +end + +function xqrebuild -d "Rebuild all of our srcpkgs" + xqdir + set f (mktemp) + ./xbps-src pkg (xqsrcpkgs) 2> "$f" + if test -s "$f" + less "$f" + end + rm "$f" +end