Allow complete ignoring of submodule

Used by the parent build infrastructure
pull/1051/head
Joshua Boniface 5 years ago
parent 9f6bca3658
commit a994edda04

@ -26,7 +26,7 @@ usage() {
echo -e " $ build [-k/--keep-artifacts] [-b/--web-branch <web_branch>] <platform> <action>"
echo -e ""
echo -e "The 'keep-artifacts' option preserves build artifacts, e.g. Docker images for system package builds."
echo -e "The web_branch defaults to the same branch name as the current main branch."
echo -e "The web_branch defaults to the same branch name as the current main branch or can be 'local' to not touch the submodule branching."
echo -e "To build all platforms, use 'all'."
echo -e "To perform all build actions, use 'all'."
echo -e "Build output files are collected at '../jellyfin-build/<platform>'."
@ -164,6 +164,7 @@ for target_platform in ${platform[@]}; do
fi
done
if [[ ${web_branch} != 'local' ]]; then
# Initialize submodules
git submodule update --init --recursive
@ -195,6 +196,7 @@ else
}
fi
popd
fi
# Execute each platform and action in order, if said action is enabled
pushd deployment/

Loading…
Cancel
Save