dist: recurse into git submodules
This commit is contained in:
parent
3edc7f343b
commit
e4f3894582
|
@ -17,7 +17,8 @@ single command:
|
|||
This creates a file called `projectname-version.tar.xz` in the build
|
||||
tree subdirectory `meson-dist`. This archive contains the full
|
||||
contents of the latest commit in revision control including all the
|
||||
submodules. All revision control metadata is removed. Meson then takes
|
||||
submodules (recursively). All revision control metadata is removed.
|
||||
Meson then takes
|
||||
this archive and tests that it works by doing a full compile + test +
|
||||
install cycle. If all these pass, Meson will then create a SHA-256
|
||||
checksum file next to the archive.
|
||||
|
|
|
@ -62,7 +62,7 @@ def process_submodules(dirname):
|
|||
module_file = os.path.join(dirname, '.gitmodules')
|
||||
if not os.path.exists(module_file):
|
||||
return
|
||||
subprocess.check_call(['git', 'submodule', 'update', '--init'], cwd=dirname)
|
||||
subprocess.check_call(['git', 'submodule', 'update', '--init', '--recursive'], cwd=dirname)
|
||||
for line in open(module_file):
|
||||
line = line.strip()
|
||||
if '=' not in line:
|
||||
|
|
Loading…
Reference in New Issue