mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
added SVN_PATH [#METR-9766]
This commit is contained in:
parent
740623b729
commit
92fdc6dc88
@ -5,7 +5,9 @@ echo -n "#define SVN_REVISION " >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h
|
||||
|
||||
cd ${CMAKE_CURRENT_SOURCE_DIR};
|
||||
|
||||
# svn
|
||||
echo && (LC_ALL=C svn info ${PROJECT_SOURCE_DIR}/ 2>/dev/null || echo Revision 1) | grep Revision | cut -d " " -f 2 >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h;
|
||||
|
||||
echo -n "#define SVN_PATH " >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h
|
||||
echo && (LC_ALL=C svn info ./ 2>/dev/null || echo URL: unknown) | grep URL | cut -d " " -f 2 | sed "s/https:\/\/███████████.yandex-team.ru\/conv\///g" >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h;
|
||||
|
||||
echo "#endif" >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h
|
||||
|
Loading…
Reference in New Issue
Block a user