Makefile: consistently use PERL_PATH
When injecting the Perl path into our scripts we sometimes use '@PERL@' while we othertimes use '@PERL_PATH@'. Refactor the code use the latter consistently, which makes it easier to reuse the same logic for multiple scripts. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
a38edab7c8
commit
c2a3b847ed
@ -846,7 +846,7 @@ foreach(script ${git_shell_scripts})
|
||||
string(REPLACE "@NO_CURL@" "" content "${content}")
|
||||
string(REPLACE "@USE_GETTEXT_SCHEME@" "" content "${content}")
|
||||
string(REPLACE "# @BROKEN_PATH_FIX@" "" content "${content}")
|
||||
string(REPLACE "@PERL@" "${PERL_PATH}" content "${content}")
|
||||
string(REPLACE "@PERL_PATH@" "${PERL_PATH}" content "${content}")
|
||||
string(REPLACE "@PAGER_ENV@" "LESS=FRX LV=-c" content "${content}")
|
||||
file(WRITE ${CMAKE_BINARY_DIR}/${script} ${content})
|
||||
endforeach()
|
||||
|
Reference in New Issue
Block a user