mirror of
https://github.com/Fihdi/Eurorack.git
synced 2026-04-12 07:55:50 +00:00
24 lines
324 B
Bash
Executable File
24 lines
324 B
Bash
Executable File
#!/bin/bash
|
|
|
|
START_DIR=$PWD
|
|
|
|
for dir in ./*/
|
|
do
|
|
# Remove the trailing "/"
|
|
dir=${dir%*/}
|
|
|
|
# Check if there is a Makefile in this directory
|
|
if [ -f ${dir}/Makefile ]; then
|
|
echo " "
|
|
echo " -------> Build '${dir##*/}'"
|
|
cd "$dir" ; make
|
|
|
|
# Copy binary
|
|
cp build/*.bin ../../binaries/
|
|
|
|
cd ..
|
|
fi
|
|
done
|
|
|
|
echo "Done."
|