Skip to content

Commit

Permalink
set develop build as 2.4.x release
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Oct 4, 2018
1 parent 41b6392 commit 233e5b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
26 changes: 12 additions & 14 deletions NSIS/FusionInventory-Agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,20 +130,18 @@ else
fi
option_nsis_define="$option_nsis_define -DFIA_RELEASE=${fusinv_agent_release}"

if [ -z "${fusinv_agent_release##*.*.*}" ]; then
read MAJOR MINOR SUB <<<"${fusinv_agent_release//./ }"
if [ -n "${MAJOR}" ]; then
option_nsis_define="$option_nsis_define -DFIA_MAJOR=${MAJOR}"
else
echo "ERROR: Can't read MAJOR version number" >&2
exit 1
fi
if [ -n "${MINOR}" ]; then
option_nsis_define="$option_nsis_define -DFIA_MINOR=${MINOR%%-*}"
else
echo "ERROR: Can't read MINOR version number" >&2
exit 1
fi
read MAJOR MINOR SUB <<<"${fusinv_agent_release//./ }"
if [ -n "${MAJOR}" ]; then
option_nsis_define="$option_nsis_define -DFIA_MAJOR=${MAJOR}"
else
echo "ERROR: Can't read MAJOR version number" >&2
exit 1
fi
if [ -n "${MINOR}" ]; then
option_nsis_define="$option_nsis_define -DFIA_MINOR=${MINOR%%-*}"
else
echo "ERROR: Can't read MINOR version number" >&2
exit 1
fi

# Support numbering with empty or 'x' SUB as zero sub
Expand Down
2 changes: 1 addition & 1 deletion Perl/Scripts/load-perl-environment
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ if [ -n "${APPVEYOR_REPO_TAG_NAME}" ]; then
declare -r fusinv_agent_release="${APPVEYOR_REPO_TAG_NAME}"
elif [ -n "${APPVEYOR_REPO_BRANCH}" ]; then
declare -r fusinv_agent_commit="develop"
declare -r fusinv_agent_release="develop"
declare -r fusinv_agent_release="2.4.x"
declare -r TYPE="development"
elif [ -n "${FIA_RELEASE}" ]; then
declare -r fusinv_agent_release="${FIA_RELEASE}"
Expand Down

0 comments on commit 233e5b3

Please sign in to comment.