build.sh 665 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. # Execute all build.sh and package.sh and sign.sh scripts in every folder. In that order. Script should check for artifacts themselves.
  3. echo "Running for platforms '$@'."
  4. for directory in */ ; do
  5. platform=`basename "${directory}"`
  6. if [[ $@ == *"$platform"* || $@ = *"all"* ]]; then
  7. echo "Processing ${platform}"
  8. pushd "$platform"
  9. if [ -f build.sh ]; then
  10. echo ./build.sh
  11. fi
  12. if [ -f package.sh ]; then
  13. echo ./package.sh
  14. fi
  15. if [ -f sign.sh ]; then
  16. echo ./sign.sh
  17. fi
  18. popd
  19. else
  20. echo "Skipping $platform."
  21. fi
  22. done