Skip to content

Commit

Permalink
Support full edition name
Browse files Browse the repository at this point in the history
  • Loading branch information
pasin committed Mar 4, 2024
1 parent 06c4e70 commit 830d299
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Scripts/generate_objc_release_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

function usage
{
echo -e "Usage: ${0} -o <Output Directory> -e <Edition; ce or ee> [-v <Version (<Version Number>[-<Build Number>])>]"
echo -e "Usage: ${0} -o <Output Directory> -e <Edition; ce, community, ee, enterprise> [-v <Version (<Version Number>[-<Build Number>])>]"
echo -e "\nOptions:"
echo -e " --notest\t create a release package but no tests needs to be run"
echo -e " --nocov\t create a release package, run tests but no code coverage zip"
Expand Down Expand Up @@ -66,14 +66,14 @@ then
exit 4
fi

if [ "$EDITION" == "ce" ]
if [ "$EDITION" == "ce" ] || [ "$EDITION" == "community" ]
then
SCHEME_PREFIX="CBL"
CONFIGURATION="Release"
CONFIGURATION_TEST="Debug"
COVERAGE_NAME="objc_coverage"
EDITION="community"
elif [ "$EDITION" == "ee" ]
elif [ "$EDITION" == "ee" ] || [ "$EDITION" == "enterprise" ]
then
SCHEME_PREFIX="CBL_EE"
CONFIGURATION="Release_EE"
Expand All @@ -87,6 +87,8 @@ else
exit 4
fi

echo "Build Edition : ${EDITION}"

if [ -z "$PRETTY" ]
then
XCPRETTY="cat"
Expand Down
8 changes: 5 additions & 3 deletions Scripts/generate_swift_release_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

function usage
{
echo -e "Usage: ${0} -o <Output Directory> -e <Edition; ce or ee> [-v <Version (<Version Number>[-<Build Number>])>]"
echo -e "Usage: ${0} -o <Output Directory> -e <Edition; ce, community, ee, enterprise> [-v <Version (<Version Number>[-<Build Number>])>]"
echo -e "\nOptions:"
echo -e " --notest\t create a release package but no tests needs to be run"
echo -e " --nocov\t create a release package, run tests but no code coverage zip"
Expand Down Expand Up @@ -66,14 +66,14 @@ then
exit 4
fi

if [ "$EDITION" == "ce" ]
if [ "$EDITION" == "ce" ] || [ "$EDITION" == "community" ]
then
SCHEME_PREFIX="CBL"
CONFIGURATION="Release"
CONFIGURATION_TEST="Debug"
COVERAGE_NAME="swift_coverage"
EDITION="community"
elif [ "$EDITION" == "ee" ]
elif [ "$EDITION" == "ee" ] || [ "$EDITION" == "enterprise" ]
then
SCHEME_PREFIX="CBL_EE"
CONFIGURATION="Release_EE"
Expand All @@ -86,6 +86,8 @@ else
exit 4
fi

echo "Build Edition : ${EDITION}"

if [ -z "$PRETTY" ]
then
XCPRETTY="cat"
Expand Down

0 comments on commit 830d299

Please sign in to comment.