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.

editions.sh 591B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. DEFAULT_EDITION="community"
  4. EDITIONS="community"
  5. toLower() {
  6. echo "$1" | tr '[:upper:]' '[:lower:]'
  7. }
  8. checkEdition() {
  9. for t in $EDITIONS; do
  10. if [ "$1" = "$t" ]; then
  11. return
  12. fi
  13. done
  14. echo "Unsupported edition $1"
  15. exit 1
  16. }
  17. resolveAliases() {
  18. local lowerEditionAlias=$(toLower "$1")
  19. case "$lowerEditionAlias" in
  20. oss )
  21. echo community ;;
  22. * )
  23. echo "$lowerEditionAlias" ;;
  24. esac
  25. }
  26. distributionDirOf() {
  27. echo "sonar-application/build/distributions/"
  28. }
  29. baseFileNameOf() {
  30. echo "sonar-application"
  31. }