NetworkManager/tools
Íñigo Huguet 02c1869ed4 meson: exclude intermediate files of docs generation from tarball
We want to distribute the generated documentation when we generate the
tarball because we normally do it when we do a release, but `meson dist`
only includes files that are commited to the repository, so a script
meson-dist-data.sh was added with meson.add_dist_script in commit
1c41066a40 ('build: include documentation in meson dist').

This script was copying the whole documentation folders, including some
intermediate files that are not useful for users that wants to read the
docs. Get rid of them and copy only the files that are useful for users:
the generated html pages in docs/api and docs/libnm and the final man
pages.

Also, including these intermediate files caused at least one build
failure, although quite difficult to reproduce:
- Generate tarball with meson
- Untar the generated tarball
- Using the sources from the tarball, configure the project with
  autotools, but building to an out-of-tree folder, not building in
  the source dir (i.e. using a 'build' subfolder). This is called
  a "VPATH build" by autotools and Make. See:
  - https://www.gnu.org/software/make/manual/html_node/General-Search.html
  - https://www.gnu.org/software/automake/manual/html_node/VPATH-Builds.html
- Build

In that scenario, we get an error trying to generate any file under man/
because the man/ subdirectory has not been created. The reason of this
was that the man/ subdirectory is created by the Makefile when
generating the file man/common.ent. However, this file was present in
the source directory because it has been included in the tarball, so
Make detects it and doesn't run the rules to generate it. The result is
that out-of-tree-dir/man folder is not created.

Not including the intermediate files solves this problem.

Fixes: 1c41066a40 ('build: include documentation in meson dist')
(cherry picked from commit 723ad4c0ad)
2024-06-21 20:40:32 +02:00
..
nm-guest-data nm-in-container: set TERM=xterm in bashrc 2023-11-20 16:40:10 +01:00
check-compare-generated.sh build: pass both filenames to "tools/check-compare-generated.sh" script 2022-10-31 09:11:30 +01:00
check-config-options.sh all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
check-docs.sh all: avoid "==" bashism in scripts 2023-05-18 09:16:41 +02:00
check-exports.sh tools/check-exports.sh: use ${NM} when available 2015-09-24 16:28:15 +02:00
check-gitlab-ci.sh tools: improve detection of "ci-fairy" command in "tools/check-gitlab-ci.sh" 2020-12-11 16:08:47 +01:00
check-nm-autoptr.sh build: add test for checking consistency of "nm-autoptr.h" 2023-02-28 16:33:07 +01:00
check-tree.sh build: move "clients/common/" to "src/libnmc-{base,setting}/" 2021-03-02 08:38:25 +01:00
check-vapi.sh vapi: add test for consistency of "vapi/NM-1.0.metadata" 2023-02-28 13:05:47 +01:00
create-exports-NetworkManager.sh build: fix pretty() sed invocation portability in .ver script 2023-03-07 08:02:22 +01:00
debug-helper.py all: reformat python files with python black 2020-06-15 16:40:38 +02:00
enums-to-docbook.pl all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
generate-docs-nm-property-infos.py python: reformat with black-23.7.0-2.fc39.noarch 2023-12-06 11:56:11 +01:00
generate-docs-nm-settings-docs-gir.py man nm-setting-*: proper format for gtkdoc constants 2023-09-21 15:57:35 +02:00
generate-docs-nm-settings-docs-merge.py python: reformat with black-23.7.0-2.fc39.noarch 2023-12-06 11:56:11 +01:00
generate-docs-settings-docs.py doc: preserve paraghraphs in nmcli man pages 2022-07-15 17:25:15 +02:00
meson-dist-data.sh meson: exclude intermediate files of docs generation from tarball 2024-06-21 20:40:32 +02:00
meson-post-install.sh cloud-setup: add pre-up event to prevent reaching network-online.target 2023-06-09 09:18:20 -04:00
nm-in-container nm-in-container: bind mount additional directories 2023-11-20 16:00:14 +01:00
nm-in-vm tools: nm-in-vm: fix error if pool folder doesn't exist yet 2023-09-21 15:53:03 +02:00
run-nm-test.sh tests: improve detection of libtool in "run-nm-test.sh" 2023-11-30 15:36:20 +01:00
test-build.sh core: rework IP configuration in NetworkManager using layer 3 configuration 2021-11-18 16:21:29 +01:00
test-cloud-meta-mock.py python: reformat with black-23.7.0-2.fc39.noarch 2023-12-06 11:56:11 +01:00
test-networkmanager-service.py python: reformat with black-23.7.0-2.fc39.noarch 2023-12-06 11:56:11 +01:00
test-sudo-wrapper.sh nmtst: add nmtst_reexec_sudo() function 2014-06-05 18:12:57 +02:00