From 83a36a6ceabc7b1ccffbfbf75e2ccf75947ae41b Mon Sep 17 00:00:00 2001 From: Russell Standish Date: Sun, 7 Mar 2021 09:30:37 +1100 Subject: [PATCH] Update makeDist.sh to handle submodules. --- makeDist.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/makeDist.sh b/makeDist.sh index db569cfc8..3069f60eb 100644 --- a/makeDist.sh +++ b/makeDist.sh @@ -7,4 +7,15 @@ else name=scidavis-$version~$extra fi -git archive --format=tar.gz --prefix=$name/ HEAD -o $name.tar.gz +git archive --format=tar --prefix=$name/ HEAD -o $name.tar + +# add submodules +git submodule update --init --recursive +git submodule|cut -f3 -d' '|while read s; do + pushd $s + git archive --format=tar --prefix=$name/$s/ HEAD -o /tmp/$$.tar + popd + tar Af $name.tar /tmp/$$.tar +done +gzip -f $name.tar +rm /tmp/$$.tar