Skip to content

Commit

Permalink
Update makeDist.sh to handle submodules.
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed Mar 6, 2021
1 parent 1032e23 commit 83a36a6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion makeDist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 83a36a6

Please sign in to comment.