Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Documentation/RelNotes/2.52.0.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,14 @@ Performance, Internal Implementation, Development Support etc.
* The "debug" ref-backend was missing a method implementation, which
has been corrected.
* Build procedure for Wincred credential helper has been updated.
* The build procedure based on meson learned to allow builders to
specify the directory to install HTML documents.
* Building "git contacts" script (in contrib/) left the resulting
file unexecutable, which has been corrected.
Fixes since v2.51
-----------------
Expand Down
4 changes: 2 additions & 2 deletions Documentation/howto/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ doc_targets += custom_target(
output: 'howto-index.html',
depends: documentation_deps,
install: true,
install_dir: get_option('datadir') / 'doc/git-doc',
install_dir: htmldir,
)

foreach howto : howto_sources
Expand All @@ -57,6 +57,6 @@ foreach howto : howto_sources
output: fs.stem(howto_stripped.full_path()) + '.html',
depends: documentation_deps,
install: true,
install_dir: get_option('datadir') / 'doc/git-doc/howto',
install_dir: htmldir / 'howto',
)
endforeach
12 changes: 6 additions & 6 deletions Documentation/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ foreach manpage, category : manpages
input: manpage,
output: fs.stem(manpage) + '.html',
install: true,
install_dir: get_option('datadir') / 'doc/git-doc',
install_dir: htmldir,
)
endif
endforeach
Expand All @@ -423,19 +423,19 @@ if get_option('docs').contains('html')
output: 'docinfo.html',
copy: true,
install: true,
install_dir: get_option('datadir') / 'doc/git-doc',
install_dir: htmldir,
)

configure_file(
input: 'docbook-xsl.css',
output: 'docbook-xsl.css',
copy: true,
install: true,
install_dir: get_option('datadir') / 'doc/git-doc',
install_dir: htmldir,
)

install_symlink('index.html',
install_dir: get_option('datadir') / 'doc/git-doc',
install_dir: htmldir,
pointing_to: 'git.html',
)

Expand Down Expand Up @@ -466,7 +466,7 @@ if get_option('docs').contains('html')
input: 'docbook.xsl',
output: 'user-manual.html',
install: true,
install_dir: get_option('datadir') / 'doc/git-doc',
install_dir: htmldir,
)

articles = [
Expand All @@ -492,7 +492,7 @@ if get_option('docs').contains('html')
output: fs.stem(article) + '.html',
depends: documentation_deps,
install: true,
install_dir: get_option('datadir') / 'doc/git-doc',
install_dir: htmldir,
)
endforeach

Expand Down
4 changes: 2 additions & 2 deletions Documentation/technical/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ doc_targets += custom_target(
output: 'api-index.html',
depends: documentation_deps,
install: true,
install_dir: get_option('datadir') / 'doc/git-doc/technical',
install_dir: htmldir / 'technical',
)

foreach article : api_docs + articles
Expand All @@ -63,6 +63,6 @@ foreach article : api_docs + articles
output: fs.stem(article) + '.html',
depends: documentation_deps,
install: true,
install_dir: get_option('datadir') / 'doc/git-doc/technical',
install_dir: htmldir / 'technical',
)
endforeach
2 changes: 1 addition & 1 deletion GIT-VERSION-GEN
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

DEF_VER=v2.52.0-rc1
DEF_VER=v2.52.0-rc2

LF='
'
Expand Down
2 changes: 1 addition & 1 deletion contrib/contacts/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ if get_option('docs').contains('html')
input: 'git-contacts.adoc',
output: 'git-contacts.html',
install: true,
install_dir: get_option('datadir') / 'doc/git-doc',
install_dir: htmldir,
)
endif
18 changes: 10 additions & 8 deletions contrib/credential/wincred/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@ all:: git-credential-wincred.exe
-include ../../../config.mak.autogen
-include ../../../config.mak

CC ?= gcc
RM ?= rm -f
CFLAGS ?= -O2 -Wall

prefix ?= /usr/local
libexecdir ?= $(prefix)/libexec/git-core
gitexecdir ?= $(prefix)/libexec/git-core

CC ?= gcc
CFLAGS ?= -O2 -Wall
INSTALL ?= install
RM ?= rm -f

git-credential-wincred.exe : git-credential-wincred.c
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
git-credential-wincred.exe: git-credential-wincred.c
$(LINK.c) -o $@ $^ $(LDFLAGS) $(LDLIBS)

install: git-credential-wincred.exe
$(INSTALL) -m 755 $^ $(libexecdir)
$(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
$(INSTALL) -m 755 $< $(DESTDIR)$(gitexecdir)

clean:
$(RM) git-credential-wincred.exe

.PHONY: all install clean
2 changes: 1 addition & 1 deletion contrib/subtree/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ if get_option('docs').contains('html')
input: 'git-subtree.adoc',
output: 'git-subtree.html',
install: true,
install_dir: get_option('datadir') / 'doc/git-doc',
install_dir: htmldir,
)
endif
2 changes: 1 addition & 1 deletion generate-perl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ sed -e '1{' \
"$INPUT" >"$OUTPUT"

case "$INPUT" in
*.perl)
*.perl|*git-contacts)
chmod a+x "$OUTPUT";;
*)
;;
Expand Down
7 changes: 6 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -768,13 +768,18 @@ if test_output_directory == ''
test_output_directory = meson.project_build_root() / 'test-output'
endif

htmldir = get_option('htmldir')
if htmldir == ''
htmldir = get_option('datadir') / 'doc/git-doc'
endif

# These variables are used for building libgit.a.
libgit_c_args = [
'-DBINDIR="' + get_option('bindir') + '"',
'-DDEFAULT_GIT_TEMPLATE_DIR="' + get_option('datadir') / 'git-core/templates' + '"',
'-DFALLBACK_RUNTIME_PREFIX="' + get_option('prefix') + '"',
'-DGIT_HOST_CPU="' + host_machine.cpu_family() + '"',
'-DGIT_HTML_PATH="' + get_option('datadir') / 'doc/git-doc"',
'-DGIT_HTML_PATH="' + htmldir + '"',
'-DGIT_INFO_PATH="' + get_option('infodir') + '"',
'-DGIT_LOCALE_PATH="' + get_option('localedir') + '"',
'-DGIT_MAN_PATH="' + get_option('mandir') + '"',
Expand Down
2 changes: 2 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Configuration for Git installation
option('htmldir', type: 'string', value: '',
description: 'Directory to install HTML docs to. Defaults to <datadir>/doc/git-doc')
option('perllibdir', type: 'string', value: '',
description: 'Directory to install perl lib to. Defaults to <datadir>/perl5')

Expand Down