diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..600f158 --- /dev/null +++ b/build.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# + +# Create a list of all files that start with sdk +sdk_files=($(find . -type d -name 'sdk*')) + +# Loop through each SDK folder +for d in $sdk_files; do + # CD into the SDK folder + cd "$d" + pwd + + # Make the shell scripts executable + chmod +x *.sh + + # Run the dependencies and download scripts + + ./download.sh + # Create the artifacts directory + mkdir -p artifacts + + # If patch.sh exists, run it + if [ -f patch.sh ]; then + ./patch.sh + fi + + echo "Building $d" + ./build.sh + echo "Done with $d" + cd .. +done |
