aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
blob: b5e039d779e0c31ff342e86c8cf6eb86a32b8cb3 (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
#!/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
		echo "Patching $d"
		./patch.sh
	fi

	echo "Building $d"
	./build.sh
	echo "Done with $d"
	cd ..
done