@@ -1737,43 +1737,43 @@ git_builtin = executable('git',
1737
1737
sources : builtin_sources + ' git.c' ,
1738
1738
dependencies : [libgit_commonmain],
1739
1739
install : true ,
1740
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1740
+ install_dir : git_exec_path ,
1741
1741
)
1742
1742
bin_wrappers += git_builtin
1743
1743
1744
1744
test_dependencies += executable (' git-daemon' ,
1745
1745
sources : ' daemon.c' ,
1746
1746
dependencies : [libgit_commonmain],
1747
1747
install : true ,
1748
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1748
+ install_dir : git_exec_path ,
1749
1749
)
1750
1750
1751
1751
test_dependencies += executable (' git-sh-i18n--envsubst' ,
1752
1752
sources : ' sh-i18n--envsubst.c' ,
1753
1753
dependencies : [libgit_commonmain],
1754
1754
install : true ,
1755
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1755
+ install_dir : git_exec_path ,
1756
1756
)
1757
1757
1758
1758
bin_wrappers += executable (' git-shell' ,
1759
1759
sources : ' shell.c' ,
1760
1760
dependencies : [libgit_commonmain],
1761
1761
install : true ,
1762
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1762
+ install_dir : git_exec_path ,
1763
1763
)
1764
1764
1765
1765
test_dependencies += executable (' git-http-backend' ,
1766
1766
sources : ' http-backend.c' ,
1767
1767
dependencies : [libgit_commonmain],
1768
1768
install : true ,
1769
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1769
+ install_dir : git_exec_path ,
1770
1770
)
1771
1771
1772
1772
bin_wrappers += executable (' scalar' ,
1773
1773
sources : ' scalar.c' ,
1774
1774
dependencies : [libgit_commonmain],
1775
1775
install : true ,
1776
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1776
+ install_dir : git_exec_path ,
1777
1777
)
1778
1778
1779
1779
if curl.found()
@@ -1789,22 +1789,22 @@ if curl.found()
1789
1789
sources : ' remote-curl.c' ,
1790
1790
dependencies : [libgit_curl],
1791
1791
install : true ,
1792
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1792
+ install_dir : git_exec_path ,
1793
1793
)
1794
1794
1795
1795
test_dependencies += executable (' git-http-fetch' ,
1796
1796
sources : ' http-fetch.c' ,
1797
1797
dependencies : [libgit_curl],
1798
1798
install : true ,
1799
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1799
+ install_dir : git_exec_path ,
1800
1800
)
1801
1801
1802
1802
if expat.found()
1803
1803
test_dependencies += executable (' git-http-push' ,
1804
1804
sources : ' http-push.c' ,
1805
1805
dependencies : [libgit_curl],
1806
1806
install : true ,
1807
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1807
+ install_dir : git_exec_path ,
1808
1808
)
1809
1809
endif
1810
1810
@@ -1815,7 +1815,7 @@ if curl.found()
1815
1815
)
1816
1816
1817
1817
install_symlink(alias + executable_suffix,
1818
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1818
+ install_dir : git_exec_path ,
1819
1819
pointing_to : ' git-remote-http' ,
1820
1820
)
1821
1821
endforeach
@@ -1825,7 +1825,7 @@ test_dependencies += executable('git-imap-send',
1825
1825
sources : ' imap-send.c' ,
1826
1826
dependencies : [ use_curl_for_imap_send ? libgit_curl : libgit_commonmain ],
1827
1827
install : true ,
1828
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1828
+ install_dir : git_exec_path ,
1829
1829
)
1830
1830
1831
1831
foreach alias : [ ' git-receive-pack' , ' git-upload-archive' , ' git-upload-pack' ]
@@ -1835,7 +1835,7 @@ foreach alias : [ 'git-receive-pack', 'git-upload-archive', 'git-upload-pack' ]
1835
1835
)
1836
1836
1837
1837
install_symlink(alias + executable_suffix,
1838
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1838
+ install_dir : git_exec_path ,
1839
1839
pointing_to : ' git' ,
1840
1840
)
1841
1841
endforeach
@@ -1849,9 +1849,9 @@ foreach symlink : [
1849
1849
' scalar' ,
1850
1850
]
1851
1851
if meson .version().version_compare(' >=1.3.0' )
1852
- pointing_to = fs.relative_to(get_option ( ' libexecdir ' ) / ' git-core ' / symlink, get_option (' bindir' ))
1852
+ pointing_to = fs.relative_to(git_exec_path / symlink, get_option (' bindir' ))
1853
1853
else
1854
- pointing_to = ' ../libexec/git-core ' / symlink
1854
+ pointing_to = ' ..' / git_exec_path / symlink
1855
1855
endif
1856
1856
1857
1857
install_symlink(symlink,
@@ -1891,7 +1891,7 @@ foreach script : scripts_sh
1891
1891
meson .project_build_root() / ' GIT-BUILD-OPTIONS' ,
1892
1892
],
1893
1893
install : true ,
1894
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1894
+ install_dir : git_exec_path ,
1895
1895
)
1896
1896
endforeach
1897
1897
@@ -1924,7 +1924,7 @@ if perl_features_enabled
1924
1924
input : perl_header_template,
1925
1925
output : ' GIT-PERL-HEADER' ,
1926
1926
configuration : {
1927
- ' GITEXECDIR_REL' : get_option ( ' libexecdir ' ) / ' git-core ' ,
1927
+ ' GITEXECDIR_REL' : git_exec_path ,
1928
1928
' PERLLIBDIR_REL' : perllibdir,
1929
1929
' LOCALEDIR_REL' : get_option (' datadir' ) / ' locale' ,
1930
1930
' INSTLIBDIR' : perllibdir,
@@ -1948,7 +1948,7 @@ if perl_features_enabled
1948
1948
output : fs.stem(script),
1949
1949
command : generate_perl_command,
1950
1950
install : true ,
1951
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1951
+ install_dir : git_exec_path ,
1952
1952
depends : [git_version_file],
1953
1953
)
1954
1954
test_dependencies += generated_script
@@ -1957,9 +1957,9 @@ if perl_features_enabled
1957
1957
bin_wrappers += generated_script
1958
1958
1959
1959
if meson .version().version_compare(' >=1.3.0' )
1960
- pointing_to = fs.relative_to(get_option ( ' libexecdir ' ) / ' git-core ' / fs.stem(script), get_option (' bindir' ))
1960
+ pointing_to = fs.relative_to(git_exec_path / fs.stem(script), get_option (' bindir' ))
1961
1961
else
1962
- pointing_to = ' ../libexec/git-core ' / fs.stem(script)
1962
+ pointing_to = ' ..' / git_exec_path / fs.stem(script)
1963
1963
endif
1964
1964
1965
1965
install_symlink(fs.stem(script),
@@ -1989,7 +1989,7 @@ if target_python.found()
1989
1989
' @OUTPUT@' ,
1990
1990
],
1991
1991
install : true ,
1992
- install_dir : get_option ( ' libexecdir ' ) / ' git-core ' ,
1992
+ install_dir : git_exec_path ,
1993
1993
)
1994
1994
test_dependencies += generated_python
1995
1995
endforeach
@@ -2023,7 +2023,7 @@ mergetools = [
2023
2023
]
2024
2024
2025
2025
foreach mergetool : mergetools
2026
- install_data (mergetool, install_dir : get_option ( ' libexecdir ' ) / ' git-core ' / ' mergetools' )
2026
+ install_data (mergetool, install_dir : git_exec_path / ' mergetools' )
2027
2027
endforeach
2028
2028
2029
2029
if intl.found()
0 commit comments