Skip to content

Commit

Permalink
Add prerelease flag to 'config.sh'.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Jan 29, 2020
1 parent f35e3c4 commit f8e72d2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions scripts/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ function relative() {
fi
}

# Full and major version of Rocket
# Versioning information. These are toggled as versions change.
ROCKET_VERSION="0.5.0-dev"
ROCKET_MAJOR_VERSION=$(echo "${ROCKET_VERSION}" | cut -d'.' -f1-2)
CURRENT_RELEASE=false
PRE_RELEASE=true

# A generated codename for this version. Use the git branch for pre-releases.
case $PRE_RELEASE in
true) VERSION_CODENAME="$(git branch --show-current)" ;;
false) VERSION_CODENAME="$(echo "${ROCKET_VERSION}" | cut -d'.' -f1-2)" ;;
esac

# Root of workspace-like directories.
PROJECT_ROOT=$(relative "") || exit $?
Expand Down Expand Up @@ -55,8 +61,9 @@ ALL_PROJECT_DIRS=(

if [ "${1}" = "-p" ]; then
echo "ROCKET_VERSION: ${ROCKET_VERSION}"
echo "ROCKET_MAJOR_VERSION: ${ROCKET_MAJOR_VERSION}"
echo "CURRENT_RELEASE: ${CURRENT_RELEASE}"
echo "PRE_RELEASE: ${PRE_RELEASE}"
echo "VERSION_CODENAME: ${VERSION_CODENAME}"
echo "SCRIPT_DIR: ${SCRIPT_DIR}"
echo "PROJECT_ROOT: ${PROJECT_ROOT}"
echo "CORE_ROOT: ${CORE_ROOT}"
Expand Down

0 comments on commit f8e72d2

Please sign in to comment.