executable_lint 556 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env bash
  2. set -e
  3. set -o pipefail
  4. CHECKMAKE="${CHECKMAKE:-docker run --rm -v $PWD/Makefile:/Makefile docker.pkg.github.com/mrtazz/checkmake/checkmake:f127301db6ce6d9861ea0c9b94cd08a9d023fb77}"
  5. help_main()
  6. {
  7. echo "\
  8. Usage: godaddy COMMANDS ARGS...
  9. Run COMMANDS with ARGS
  10. COMMAND must be one of the sub-commands listed below:
  11. Makefile
  12. Report bugs to: go.wigust@gmail.com."
  13. }
  14. case "$1" in
  15. --help)
  16. help_main
  17. ;;
  18. Makefile)
  19. $CHECKMAKE ./checkmake Makefile
  20. ;;
  21. *)
  22. help_main
  23. ;;
  24. esac