move template_dir logic to configure script.
PATCH 1/1 move template_dir logic to configure script.
--- config.mak.in | 2 +- configure.ac | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletions(-)
config.mak.in +1 -1
@@ -12,7 +12,7 @@ exec_prefix = @exec_prefix@ bindir = @bindir@ #gitexecdir = @libexecdir@/git-core/ datarootdir = @datarootdir@ -template_dir = @datadir@/git-core/templates/ +template_dir = @template_dir@ mandir=@mandir@
configure.ac +6 -0
@@ -323,6 +323,12 @@ GIT_PARSE_WITH(iconv)) # change being considered an inode change from the update-cache perspective. + +AC_SUBST(template_dir) +if test "$template_dir" = ""; then + template_dir='${datadir}/git-core/templates/' +fi + ## Output files AC_CONFIG_FILES(["${config_file}":"${config_in}":"${config_append}"]) AC_OUTPUT
Signature · 5 lines
1.5.0.6 -- Han-Wen Nienhuys - [email protected] - http://www.xs4all.nl/~hanwen
Quoted 1 line · Han-Wen Nienhuys
---
Could I have at least three lines above the --- marker, please?
(1) Defend _why_ this is a good change --- I would agree that this would make it more flexible, and I suspect that your main thrust with this is on some platforms (perhaps Windows?) you would want to have template_dir that is somewhere away from datarootdir.
(2) an empty line between (1) and (3)
(3) Signed-off-by: line.
Quoted 3 lines
config.mak.in | 2 +- configure.ac | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletions(-)