random scripts I use
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.

26 line
686B

  1. #!/usr/bin/env fish
  2. function xrreload -d "Reload all packages into the package repository"
  3. set repo "$XBPS_HOSTDIR"/binpkgs
  4. xbps-rindex -f -c "$repo"
  5. xbps-rindex -f -r "$repo"
  6. xbps-rindex -f -a "$repo"/*.xbps
  7. end
  8. function xrsync -d "Upload voidlinux package repository"
  9. rsync $argv -azvh --delete --progress \
  10. "$XBPS_HOSTDIR"/binpkgs/{*.{xbps,xbps.sig},*-repodata} \
  11. "$_agw_secret_void_copy_dir"
  12. end
  13. function xrupdate -d "Sign and upload voidlinux package repository"
  14. xrreload
  15. xbps-rindex --privkey "$_agw_secret_void_privkey" \
  16. --sign-pkg "$XBPS_HOSTDIR"/binpkgs/*.xbps
  17. xrsync --dry-run
  18. echo "continue? [yes/no]"
  19. if test (read) = "yes"
  20. xrsync
  21. end
  22. end