archive-source.sh: Support subprojects that specify directory different from wrapfile

This commit is contained in:
Matt Borgerson 2025-01-02 17:59:17 -07:00 committed by mborgerson
parent 8366763943
commit 616a5e5d0b
1 changed files with 2 additions and 1 deletions

View File

@ -60,8 +60,9 @@ test $? -ne 0 && error "failed to archive qemu"
for sp in $subprojects; do
meson subprojects download $sp
sp_dir=$(grep -oP '^directory = \K.*' subprojects/${sp}.wrap || echo ${sp})
# test $? -ne 0 && error "failed to download subproject $sp"
tar --append --file "$tar_file" --exclude=.git subprojects/$sp
tar --append --file "$tar_file" --exclude=.git subprojects/$sp_dir
test $? -ne 0 && error "failed to append subproject $sp to $tar_file"
done