You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
376 B

  1. #! /bin/bash
  2. function usage
  3. {
  4. cat <<EOF
  5. Usage: Gruppenprojekt Programmiermethoden und Werkzeuge
  6. build
  7. build the project
  8. test
  9. runs the unit tests
  10. help
  11. print help and exit
  12. EOF
  13. }
  14. CMD=$1
  15. shift
  16. case $CMD in
  17. "build" )
  18. mvn clean install -DskipTests=true
  19. ;;
  20. "test" )
  21. mvn test
  22. ;;
  23. "help" )
  24. usage
  25. ;;
  26. * )
  27. usage
  28. ;;
  29. esac