Fixed strange error in revision.h generation [#METR-9800].

This commit is contained in:
Alexey Milovidov 2014-02-17 16:55:37 +00:00
parent 12f520e117
commit ba3a0000ae

View File

@ -5,8 +5,7 @@ echo -n "#define REVISION " >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h
cd ${CMAKE_CURRENT_SOURCE_DIR}; cd ${CMAKE_CURRENT_SOURCE_DIR};
git rev-parse --is-inside-work-tree &> /dev/null if (git rev-parse --is-inside-work-tree >/dev/null 2>&1)
if [ $? -eq 0 ]
then then
# GIT # GIT
( git describe --tags || echo 1 ) | cut -d "-" -f 1 >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h; ( git describe --tags || echo 1 ) | cut -d "-" -f 1 >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h;