2024-08-05 15:14:09 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-08-09 17:08:07 +03:00
|
|
|
if [ -z $BANAN_PORT_DIR ]; then
|
|
|
|
echo "You must set the BANAN_PORT_DIR environment variable" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2024-08-05 15:14:09 +03:00
|
|
|
cd $(dirname $(realpath $0))
|
|
|
|
|
2024-08-09 17:08:07 +03:00
|
|
|
rm -f $BANAN_PORT_DIR/.installed
|
|
|
|
|
2024-08-06 16:07:02 +03:00
|
|
|
while IFS= read -r port; do
|
2024-08-05 15:14:09 +03:00
|
|
|
pushd $(dirname "$port") >/dev/null
|
|
|
|
./build.sh
|
|
|
|
popd >/dev/null
|
2024-08-09 17:08:07 +03:00
|
|
|
done < <(find $BANAN_PORT_DIR -name '.compile_hash')
|