From 2c62f8dbd519dbb33cfb382297f0d6fef2138f69 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Sat, 12 Jan 2019 03:07:16 +0100 Subject: Renamed main script to be more correct for what it does. --- deployment/build.sh | 30 ------------------------------ deployment/make.sh | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 30 deletions(-) delete mode 100755 deployment/build.sh create mode 100755 deployment/make.sh diff --git a/deployment/build.sh b/deployment/build.sh deleted file mode 100755 index 5628d3ad5..000000000 --- a/deployment/build.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash - -git submodule update --init --recursive - -pushd ../Jellyfin.Versioning -#TODO Uncomment the next line with PR is merged. -#./update-version -popd - -# 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 - ./build.sh - fi - if [ -f package.sh ]; then - ./package.sh - fi - if [ -f sign.sh ]; then - ./sign.sh - fi - popd - else - echo "Skipping $platform." - fi -done diff --git a/deployment/make.sh b/deployment/make.sh new file mode 100755 index 000000000..ac7d03bab --- /dev/null +++ b/deployment/make.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash + +git submodule update --init --recursive + +pushd ../Jellyfin.Versioning +#TODO Uncomment the next line with PR is merged. +#./update-version +popd + +#TODO enabled proper flag parsing for enabling and disabling building, signing, packaging and publishing + +# Execute all build.sh, package.sh, sign.sh and publish.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 + ./build.sh + fi + if [ -f package.sh ]; then + ./package.sh + fi + if [ -f sign.sh ]; then + ./sign.sh + fi + if [ -f publish.sh ]; then + ./publish.sh + fi + popd + else + echo "Skipping $platform." + fi +done -- cgit v1.2.3