make.sh 929 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env bash
  2. git submodule update --init --recursive
  3. pushd ../Jellyfin.Versioning
  4. ./update-version
  5. popd
  6. #TODO enabled proper flag parsing for enabling and disabling building, signing, packaging and publishing
  7. # Execute all build.sh, package.sh, sign.sh and publish.sh scripts in every folder. In that order. Script should check for artifacts themselves.
  8. echo "Running for platforms '$@'."
  9. for directory in */ ; do
  10. platform=`basename "${directory}"`
  11. if [[ $@ == *"$platform"* || $@ = *"all"* ]]; then
  12. echo "Processing ${platform}"
  13. pushd "$platform"
  14. if [ -f build.sh ]; then
  15. ./build.sh
  16. fi
  17. if [ -f package.sh ]; then
  18. ./package.sh
  19. fi
  20. if [ -f sign.sh ]; then
  21. ./sign.sh
  22. fi
  23. if [ -f publish.sh ]; then
  24. ./publish.sh
  25. fi
  26. popd
  27. else
  28. echo "Skipping $platform."
  29. fi
  30. done