xctool.awk 311 B

1234567891011121314151617181920212223242526
  1. # Exit statuses:
  2. #
  3. # 0 - No errors found.
  4. # 1 - Wrong SDK. Retry with SDK `iphonesimulator`.
  5. # 2 - Missing target.
  6. BEGIN {
  7. status = 0;
  8. }
  9. {
  10. print;
  11. }
  12. /Testing with the '(.+)' SDK is not yet supported/ {
  13. status = 1;
  14. }
  15. /does not contain a target named/ {
  16. status = 2;
  17. }
  18. END {
  19. exit status;
  20. }