move computers/cain/fish/void-{quick,repo} to fish/

master
an 2019-10-29 00:35:44 -04:00
parent ca03698f0d
commit 9ec91ddbc0
3 changed files with 22 additions and 6 deletions

View File

@ -1,6 +0,0 @@
# vim: syntax=fish:
function xrupdate -d "Sign and upload voidlinux package repository"
xbps-rindex --privkey $_agw_secret_void_privkey --sign-pkg "$XBPS_HOSTDIR"/binpkgs/*.xbps
rsync -azvh --progress "$XBPS_HOSTDIR"/binpkgs/* "$_agw_secret_void_copy_dir"
end

22
fish/void-repo Normal file
View File

@ -0,0 +1,22 @@
# vim: syntax=fish:
function xrreload -d "Reload all packages into the package repository"
xbps-rindex -f --add "$XBPS_HOSTDIR"/binpkgs/*.xbps
end
function xrsync -d "Upload voidlinux package repository"
rsync $argv -azvh --delete --progress \
"$XBPS_HOSTDIR"/binpkgs/ \
"$_agw_secret_void_copy_dir"
end
function xrupdate -d "Sign and upload voidlinux package repository"
xrreload
xbps-rindex --privkey "$_agw_secret_void_privkey" \
--sign-pkg "$XBPS_HOSTDIR"/binpkgs/*.xbps
xrsync --dry-run
echo "continue? [yes/no]"
if test (read) = "yes"
xrsync
end
end