Jussi Pakkanen
ba6c0cab8f
Use the same directory names for dist so that ccache works. Closes #5583 .
6 years ago
Dylan Baker
5678468c2c
Don't use len() to test for container emptiness
...
I ran the numbers once before (it's in the meson history) but it's
*much* faster to *not* use len for testing if a container is empty or
not.
6 years ago
Vladimír Čunát
e4f3894582
dist: recurse into git submodules
6 years ago
Dylan Baker
e279775511
dist: Handle git worktrees, which have a .git file instead of dir
...
This is the second most straight forward stupid way of handling
this (with usiing os.path.exists) as the most stupid obvious way. The
only major advantage is that having .git as something other than a
file or directory still doesn't register.
Fixes : #3378
6 years ago
Jon Turney
93f7b83bf5
Fix flake8 'imported but unused' reports
...
$ flake8 | grep F401
./mesonbuild/minstall.py:15:1: F401 'gzip' imported but unused
./mesonbuild/backend/backends.py:26:1: F401 '..compilers.get_macos_dylib_install_name' imported but unused
./mesonbuild/backend/backends.py:29:1: F401 'functools.lru_cache' imported but unused
./mesonbuild/scripts/dist.py:27:1: F401 'mesonbuild.dependencies.ExternalProgram' imported but unused
6 years ago
Jan Tojnar
c0c075c129
Make custom dist scripts accept arguments.
...
meson.add_dist_script, introduced in #3906 , did not accept any arguments
other than script name. Since all other meson.add_*_script methods
do accept args, this makes the dist script accept them as well.
6 years ago
Nirbheek Chauhan
4a8210e81c
dist: Warn if there are uncommitted changes in the repository
...
Closes https://github.com/mesonbuild/meson/issues/1977
6 years ago
Nirbheek Chauhan
cbbab82b70
dist: Make usage of period in messages consistent
...
Having a period at the end of sentences in messages is confusing when
a file or path is being outputted, and is inconsistent when not.
This is part of an ongoing effort to fix this inconsistency across the
message outputs everywhere in Meson.
6 years ago
Jussi Pakkanen
fb770e1e3d
Add support for custom dist scripts.
6 years ago
Elliott Sales de Andrade
79d005364f
Add Mercurial dist support.
8 years ago
Elliott Sales de Andrade
1aa1d0d9ad
Remove extraneous os.path.split()s.
...
Since only one part is needed, they can be replaced by dirname,
basename, or the originally joined file name.
8 years ago
Alistair Thomas
a195b78c8d
Whitespace tweaks to reduce Flake8 warnings
8 years ago
Jussi Pakkanen
effe4fb134
Create helper function for a rmtree that works reliably on Windows.
8 years ago
Elliott Sales de Andrade
c69d82795c
Delete the correct directory in dist check.
8 years ago
Elliott Sales de Andrade
34e4d32ac7
Remove dead code paths.
8 years ago
Elliott Sales de Andrade
65b1d33931
Remove unused imports.
8 years ago
Jussi Pakkanen
8068fc0d1d
Add test and release notes.
8 years ago
Jussi Pakkanen
6e59d84534
Initialise submodules.
8 years ago
Jussi Pakkanen
a91aed8854
Test created tarball by doing a full build + test + install cycle.
8 years ago
Jussi Pakkanen
255be79e22
Created a dist target. Closes #877 .
8 years ago