build.ps1 372 B

123456789101112131415161718192021
  1. #requires -Version 3
  2. param(
  3. $Command
  4. )
  5. if (!$Command) {
  6. foreach($_ in Get-ChildItem $PSScriptRoot\mk -Name) {
  7. [System.IO.Path]::GetFileNameWithoutExtension($_)
  8. }
  9. "all"
  10. return
  11. }
  12. if ($Command -eq "all"){
  13. foreach($_ in Get-ChildItem $PSScriptRoot\mk -File) {
  14. & $_.FullName
  15. }
  16. return
  17. }
  18. & "$PSScriptRoot\mk\$Command.ps1" @args