/usr/include/SuperCollider/SCVersion.txt is in supercollider-dev 1:3.8.0~repack-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # This file is included by CMakeLists.txt, and is the single place where SC version should be updated.
# Note that you need to "make install" for this information to be copied into all places..
set(PROJECT_VERSION_MAJOR 3)
set(PROJECT_VERSION_MINOR 8)
set(PROJECT_VERSION_PATCH .0)
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
execute_process(
COMMAND git rev-parse --abbrev-ref HEAD
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_BRANCH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
execute_process(
COMMAND git log -1 --format=%h
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_COMMIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
else()
SET(GIT_BRANCH not_a_git_checkout)
SET(GIT_COMMIT_HASH na)
endif()
|