random scripts I use
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

41 行
1005B

  1. #!/usr/bin/env fish
  2. function xqdir -d "Quickly sets up an environment for building packages"
  3. $_agw_dir_src/packages/void/greyserv/copy
  4. cd (xdistdir)
  5. end
  6. function xqsrcpkgs -d "Displays all of our srcpkgs"
  7. for f in $_agw_dir_src/packages/void/greyserv/srcpkgs/*
  8. echo (basename "$f")
  9. end
  10. end
  11. function xqcheck -d "Quickly lints our packages"
  12. xqdir
  13. begin
  14. for pkg in (xqsrcpkgs)
  15. ./xbps-src update-check $pkg
  16. xlint srcpkgs/$pkg/template
  17. end
  18. end 2>&1 | tee /tmp/xqcheck.log | less +F
  19. end
  20. function xqrebuild -d "Rebuild some of our srcpkgs"
  21. xqdir
  22. xbulk -1 $argv 2>&1 | tee /tmp/xqrebuild.log | less +F
  23. end
  24. function xqupdate -d "Updates the srcpkg repository for use"
  25. echo "This command must be done after you have updated."
  26. echo "If you haven't yet, run `sudo xbps-install -Su'."
  27. echo "Type 'ok' to continue, or anything else to exit."
  28. if test (read) != "ok"
  29. exit 1
  30. end
  31. xqdir
  32. git pull
  33. rm -rf $XBPS_MASTERDIR $XBPS_HOSTDIR/{repocache-*,sources}
  34. ./xbps-src binary-bootstrap
  35. end