@@ -867,7 +867,7 @@ list(TRANSFORM perl_modules REPLACE "${CMAKE_SOURCE_DIR}/" "")
867
867
file (STRINGS ${CMAKE_SOURCE_DIR} /perl/header_templates/fixed_prefix.template.pl perl_header )
868
868
string (REPLACE "@PATHSEP@" ":" perl_header "${perl_header} " )
869
869
string (REPLACE "@INSTLIBDIR@" "${INSTLIBDIR} " perl_header "${perl_header} " )
870
- file (WRITE ${CMAKE_BINARY_DIR} /PERL-HEADER ${perl_header} )
870
+ file (WRITE ${CMAKE_BINARY_DIR} /GIT- PERL-HEADER ${perl_header} )
871
871
872
872
add_custom_command (OUTPUT "${CMAKE_BINARY_DIR} /GIT-VERSION-FILE"
873
873
COMMAND "${SH_EXE} " "${CMAKE_SOURCE_DIR} /GIT-VERSION-GEN"
@@ -882,13 +882,17 @@ foreach(script ${git_perl_scripts} ${perl_modules})
882
882
string (REPLACE ".perl" "" perl_gen_path "${script} " )
883
883
884
884
get_filename_component (perl_gen_dir "${perl_gen_path} " DIRECTORY )
885
+ if (script MATCHES "\. pm$" )
886
+ string (REGEX REPLACE "^perl" "perl/build/lib" perl_gen_dir "${perl_gen_dir} " )
887
+ string (REGEX REPLACE "^perl" "perl/build/lib" perl_gen_path "${perl_gen_path} " )
888
+ endif ()
885
889
file (MAKE_DIRECTORY "${CMAKE_BINARY_DIR} /${perl_gen_dir} " )
886
890
887
891
add_custom_command (OUTPUT "${CMAKE_BINARY_DIR} /${perl_gen_path} "
888
892
COMMAND "${SH_EXE} " "${CMAKE_SOURCE_DIR} /generate-perl.sh"
889
893
"${CMAKE_BINARY_DIR} /GIT-BUILD-OPTIONS"
890
894
"${CMAKE_BINARY_DIR} /GIT-VERSION-FILE"
891
- "${CMAKE_BINARY_DIR} /PERL-HEADER"
895
+ "${CMAKE_BINARY_DIR} /GIT- PERL-HEADER"
892
896
"${CMAKE_SOURCE_DIR} /${script} "
893
897
"${CMAKE_BINARY_DIR} /${perl_gen_path} "
894
898
DEPENDS "${CMAKE_SOURCE_DIR} /generate-perl.sh"
@@ -1078,7 +1082,7 @@ endif()
1078
1082
1079
1083
#wrapper scripts
1080
1084
set (wrapper_scripts
1081
- git git-upload-pack git-receive-pack git-upload-archive git-shell git-remote-ext scalar )
1085
+ git git-upload-pack git-receive-pack git-upload-archive git-shell scalar )
1082
1086
1083
1087
set (wrapper_test_scripts
1084
1088
test -fake-ssh test -tool )
@@ -1087,19 +1091,22 @@ set(wrapper_test_scripts
1087
1091
foreach (script ${wrapper_scripts} )
1088
1092
file (STRINGS ${CMAKE_SOURCE_DIR} /bin-wrappers/wrap-for-bin.sh content NEWLINE_CONSUME )
1089
1093
string (REPLACE "@BUILD_DIR@" "${CMAKE_BINARY_DIR} " content "${content} " )
1094
+ string (REPLACE "@TEMPLATE_DIR@" "'${CMAKE_BINARY_DIR} /templates/blt'" content "${content} " )
1090
1095
string (REPLACE "@PROG@" "${CMAKE_BINARY_DIR} /${script}${EXE_EXTENSION} " content "${content} " )
1091
1096
file (WRITE ${CMAKE_BINARY_DIR} /bin-wrappers/${script} ${content} )
1092
1097
endforeach ()
1093
1098
1094
1099
foreach (script ${wrapper_test_scripts} )
1095
1100
file (STRINGS ${CMAKE_SOURCE_DIR} /bin-wrappers/wrap-for-bin.sh content NEWLINE_CONSUME )
1096
1101
string (REPLACE "@BUILD_DIR@" "${CMAKE_BINARY_DIR} " content "${content} " )
1102
+ string (REPLACE "@TEMPLATE_DIR@" "'${CMAKE_BINARY_DIR} /templates/blt'" content "${content} " )
1097
1103
string (REPLACE "@PROG@" "${CMAKE_BINARY_DIR} /t/helper/${script}${EXE_EXTENSION} " content "${content} " )
1098
1104
file (WRITE ${CMAKE_BINARY_DIR} /bin-wrappers/${script} ${content} )
1099
1105
endforeach ()
1100
1106
1101
1107
file (STRINGS ${CMAKE_SOURCE_DIR} /bin-wrappers/wrap-for-bin.sh content NEWLINE_CONSUME )
1102
1108
string (REPLACE "@BUILD_DIR@" "${CMAKE_BINARY_DIR} " content "${content} " )
1109
+ string (REPLACE "@TEMPLATE_DIR@" "'${CMAKE_BINARY_DIR} /templates/blt'" content "${content} " )
1103
1110
string (REPLACE "@GIT_TEXTDOMAINDIR@" "${CMAKE_BINARY_DIR} /po/build/locale" content "${content} " )
1104
1111
string (REPLACE "@GITPERLLIB@" "${CMAKE_BINARY_DIR} /perl/build/lib" content "${content} " )
1105
1112
string (REPLACE "@MERGE_TOOLS_DIR@" "${CMAKE_SOURCE_DIR} /mergetools" content "${content} " )
@@ -1192,7 +1199,7 @@ string(REPLACE "@GIT_TEST_TEXTDOMAINDIR@" "'${CMAKE_BINARY_DIR}/po/build/locale'
1192
1199
string (REPLACE "@GIT_TEST_POPATH@" "'${CMAKE_BINARY_DIR} /po'" git_build_options "${git_build_options} " )
1193
1200
string (REPLACE "@GIT_TEST_TEMPLATE_DIR@" "'${CMAKE_BINARY_DIR} /templates/blt'" git_build_options "${git_build_options} " )
1194
1201
string (REPLACE "@GIT_TEST_GITPERLLIB@" "'${CMAKE_BINARY_DIR} /perl/build/lib'" git_build_options "${git_build_options} " )
1195
- string (REPLACE "@GIT_TEST_MERGE_TOOLS_DIR@" "'${RUNTIME_PREFIX} '" git_build_options "${git_build_options} " )
1202
+ string (REPLACE "@GIT_TEST_MERGE_TOOLS_DIR@" "'${CMAKE_BINARY_DIR} /mergetools '" git_build_options "${git_build_options} " )
1196
1203
string (REPLACE "@RUNTIME_PREFIX@" "'${RUNTIME_PREFIX} '" git_build_options "${git_build_options} " )
1197
1204
string (REPLACE "@GITWEBDIR@" "'${GITWEBDIR} '" git_build_options "${git_build_options} " )
1198
1205
string (REPLACE "@USE_GETTEXT_SCHEME@" "" git_build_options "${git_build_options} " )
0 commit comments