Skip to content

Commit

Permalink
build: Check dependency with version
Browse files Browse the repository at this point in the history
Recently it changed to add dependency info to the version number.
However the misc/version.sh script was not check it properly so it
triggered build always.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
  • Loading branch information
namhyung committed Aug 10, 2018
1 parent 0e69ab9 commit dd5ce3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if [ "x${DEPS}" != "x" ]; then
DEPS=" (${DEPS} )"
fi

if test -z "${FILE_VERSION}" -o "${CURR_VERSION}" != "${FILE_VERSION}"; then
if test -z "${FILE_VERSION}" -o "${CURR_VERSION}${DEPS}" != "${FILE_VERSION}"; then
# update file version only if it's different
echo "#define UFTRACE_VERSION \"${CURR_VERSION}${DEPS}\"" > ${VERSION_FILE}
echo " GEN " ${VERSION_FILE#${objdir}/}
Expand Down

0 comments on commit dd5ce3d

Please sign in to comment.