Build script clarifications
This commit is contained in:
@@ -299,9 +299,11 @@ esac
|
|||||||
git_hash=$(git rev-parse --short HEAD 2> /dev/null)
|
git_hash=$(git rev-parse --short HEAD 2> /dev/null)
|
||||||
if [ "$CI" = "true" ]
|
if [ "$CI" = "true" ]
|
||||||
then
|
then
|
||||||
|
# Backup strategy when running under Jenkins.
|
||||||
[ -z "$git_hash" ] && git_hash=$(echo $GIT_COMMIT | cut -c 1-8)
|
[ -z "$git_hash" ] && git_hash=$(echo $GIT_COMMIT | cut -c 1-8)
|
||||||
elif [ ! -z "$git_hash" ]
|
elif [ ! -z "$git_hash" ]
|
||||||
then
|
then
|
||||||
|
# Append + to denote a dirty tree.
|
||||||
git diff --quiet 2> /dev/null || git_hash="$git_hash+"
|
git diff --quiet 2> /dev/null || git_hash="$git_hash+"
|
||||||
fi
|
fi
|
||||||
[ ! -z "$git_hash" ] && cmake_flags_extra="$cmake_flags_extra -D \"EMU_GIT_HASH=$git_hash\""
|
[ ! -z "$git_hash" ] && cmake_flags_extra="$cmake_flags_extra -D \"EMU_GIT_HASH=$git_hash\""
|
||||||
|
Reference in New Issue
Block a user