Files
jellyfin/deployment/build.sh
Erwin de Haan 399a079dd4 Build scripts and build system consolidation.
Squashed commit.
2019-01-10 19:45:30 +01:00

24 lines
665 B
Bash

#!/usr/bin/env bash
# Execute all build.sh and package.sh and sign.sh scripts in every folder. In that order. Script should check for artifacts themselves.
echo "Running for platforms '$@'."
for directory in */ ; do
platform=`basename "${directory}"`
if [[ $@ == *"$platform"* || $@ = *"all"* ]]; then
echo "Processing ${platform}"
pushd "$platform"
if [ -f build.sh ]; then
echo ./build.sh
fi
if [ -f package.sh ]; then
echo ./package.sh
fi
if [ -f sign.sh ]; then
echo ./sign.sh
fi
popd
else
echo "Skipping $platform."
fi
done