diff options
author | Ben Sima <ben@bsima.me> | 2021-12-21 20:39:19 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-12-21 20:39:19 -0500 |
commit | 7c3946b27812e9dd587690ac002539c7b1298e3e (patch) | |
tree | b5a84d485c970e76aed5243edb2ac5db55c252a6 /Biz/Ide | |
parent | 8e2eede487b24908c89d60bce272e4269135e4ec (diff) |
Update ship script
Diffstat (limited to 'Biz/Ide')
-rwxr-xr-x | Biz/Ide/ship | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/Biz/Ide/ship b/Biz/Ide/ship index dd85908..9f1bcf3 100755 --- a/Biz/Ide/ship +++ b/Biz/Ide/ship @@ -1,18 +1,25 @@ #!/usr/bin/env bash -# TODO: convert to haskell -stuff=(${@}) -if [[ ${#stuff[@]} -eq 0 ]] -then - stuff=( - Biz/Cloud.nix - Biz/Dev.nix - Biz/Que/Prod.nix - # Hero/Prod.nix # disabled bc herocomcis.app domain is broken - ) -fi -lint ${stuff[@]} \ - && bild --test ${stuff[@]} \ - && for thing in ${stuff[@]} - do - push $thing - done +# +# ship <target>... +# +# lint, bild, test, and push one or more targets. if no targets are supplied, +# ship everything we know how to ship +## + set -eu + stuff=(${@}) + if [[ ${#stuff[@]} -eq 0 ]] + then + stuff=( + Biz/Cloud.nix + Biz/Dev.nix + Biz/Que.nix + # Hero/Prod.nix # disabled bc herocomcis.app domain is broken + ) + fi + lint ${stuff[@]} + bild --test ${stuff[@]} + for thing in ${stuff[@]} + do + push $thing + done +## |