You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1005 B
40 lines
1005 B
#!/usr/bin/env fish |
|
|
|
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 |
|
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 |
|
xbulk -1 $argv 2>&1 | tee /tmp/xqrebuild.log | less +F |
|
end |
|
|
|
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 |
|
rm -rf $XBPS_MASTERDIR $XBPS_HOSTDIR/{repocache-*,sources} |
|
./xbps-src binary-bootstrap |
|
end
|
|
|