blob: 51e5d28e5aec0505c85b9ffe95414f754c1c75cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/bash
#
# Create a list of all files that start with sdk
sdk_files=($(find . -type d -name 'sdk*'))
# Create the artifacts directory
mkdir -p artifacts
# 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
# If patch.sh exists, run it
if [ -f patch.sh ]; then
echo "Patching $d"
./patch.sh
fi
echo "Building $d"
./build.sh
echo "Done with $d"
cd ..
done
|