This file is indexed.

/usr/share/cmake/Modules/ManageGitScript.cmake is in cmake-fedora 2.5.1-1.

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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# - Manage Git Script
# Scripts to be invoked in command line
#

MACRO(MANAGE_GIT_SCRIPT_PRINT_USAGE)
    MESSAGE("cmake-fedora utility scripts

cmake -D cmd=make_tag_file 
    -D ver=<ver> -D output_file=<output_file>
    [-D \"msg=<message>\"]
    [-D cmake_fedora_module_dir=<dir>]
    [\"-D <VAR>=<VAULE>\"]
    -P <CmakeModulePath>/ManageGitScript.cmake
  Make a tag file, which indicates the build process is passed and 
  the branch is tagged with <ver>.

  Options:
     ver: project version
     outputFile: Tag file
     msg: message associate with tag
     cmake_fedora_module_dir: 
        Specify this if cmake and cmake-fedora failed to find 
        the location of CMake Fedora modules. 

    ")
ENDMACRO(MANAGE_GIT_SCRIPT_PRINT_USAGE)

FUNCTION(MAKE_TAG_FILE)
    EXECUTE_PROCESS(
	COMMAND git tag -l ${ver}
	OUTPUT_VARIABLE tagLine
	OUTPUT_STRIP_TRAILING_WHITESPACE
	)
    IF("${msg}" STREQUAL "")
	SET(msg "${ver}")
    ENDIF()

    IF("${tagLine}" STREQUAL "")
	## No tag
	EXECUTE_PROCESS(
	    COMMAND make VERBOSE=1 tag_pre
	    RESULT_VARIABLE tagResult
	    )
	IF(NOT tagResult EQUAL 0)
	    M_MSG(${M_FATAL} "Failed to build before tagging")
	ENDIF()
	EXECUTE_PROCESS(COMMAND git tag -a -m "${msg}" "${ver}" HEAD)
    ENDIF()
    FILE(WRITE "${output_file}" "${msg}")

ENDFUNCTION(MAKE_TAG_FILE)

SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)

#######################################
# Determine CMAKE_FEDORA_MODULE_DIR
#

## It is possible that current dir is in NO_PACK/FedPkg/<prj>
LIST(INSERT CMAKE_MODULE_PATH 0
    ${CMAKE_SOURCE_DIR}/Modules ${CMAKE_SOURCE_DIR}/cmake-fedora/Modules 
    ${CMAKE_SOURCE_DIR}/../../../Modules
    ${CMAKE_SOURCE_DIR}/../../../cmake-fedora/Modules
    ${CMAKE_SOURCE_DIR}
    )

IF(CMAKE_SCRIPT_MODE_FILE)
    GET_FILENAME_COMPONENT(CMAKE_FEDORA_SCRIPT_DIR ${CMAKE_SCRIPT_MODE_FILE}
	PATH)
    LIST(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_FEDORA_SCRIPT_DIR}")
ENDIF()

IF(cmake_fedora_module_dir)
    LIST(INSERT CMAKE_MODULE_PATH 0 "${cmake_fedora_module_dir}")
ENDIF()

INCLUDE(ManageMessage RESULT_VARIABLE MANAGE_MODULE_PATH)
IF(NOT MANAGE_MODULE_PATH)
    MESSAGE(FATAL_ERROR "ManageMessage.cmake cannot be found in ${CMAKE_MODULE_PATH}")
ENDIF()
INCLUDE(ManageFile)

IF(NOT DEFINED cmd)
    MANAGE_GIT_SCRIPT_PRINT_USAGE()
ELSEIF(cmd STREQUAL "make_tag_file")
    IF(NOT ver)
	MANAGE_GIT_SCRIPT_PRINT_USAGE()
	M_MSG(${M_FATAL} "Requires -D ver=<ver>")
    ENDIF()
    IF(NOT output_file)
	MANAGE_GIT_SCRIPT_PRINT_USAGE()
	M_MSG(${M_FATAL} "Requires -D output_file=<output_file>")
    ENDIF()
    MAKE_TAG_FILE()
ELSE()
    MANAGE_GIT_SCRIPT_PRINT_USAGE()
    M_MSG(${M_FATAL} "Invalid cmd ${cmd}")
ENDIF()