scripts/fish/void-quick

41 rivejä
1005 B
Plaintext

2020-01-07 08:35:20 -08:00
#!/usr/bin/env fish
2019-10-26 00:20:54 -07:00
function xqdir -d "Quickly sets up an environment for building packages"
2019-10-26 00:20:54 -07:00
$_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
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
2019-11-07 20:57:41 -08:00
function xqrebuild -d "Rebuild some of our srcpkgs"
xqdir
2021-06-20 06:51:42 -07:00
xbulk -1 $argv 2>&1 | tee /tmp/xqrebuild.log | less +F
end
2020-06-02 05:59:29 -07:00
function xqupdate -d "Updates the srcpkg repository for use"
echo "This command must be done after you have updated."
echo "If you haven't yet, run `sudo xbps-install -Su'."
echo "Type 'ok' to continue, or anything else to exit."
if test (read) != "ok"
exit 1
end
xqdir
git pull
2021-06-20 06:51:42 -07:00
rm -rf $XBPS_MASTERDIR $XBPS_HOSTDIR/{repocache-*,sources}
2020-06-02 05:59:29 -07:00
./xbps-src binary-bootstrap
end