ci/make-git-snapshot.sh: auto-initialize submodules

Matches `autogen.sh`.
This commit is contained in:
Jonathan Lebon 2022-02-03 13:22:47 -05:00
parent 8d45298a2d
commit 92c396c82b
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ PKG_VER="${name}-${version}"
TARFILE=${PKG_VER}.tar
TARFILE_TMP=${TARFILE}.tmp
if ! test -f ${TOP}/libglnx/README.md || ! test -f ${TOP}/bsdiff/README.md; then
git submodule update --init
fi
echo "Archiving ${PKG_VER} at ${GITREV} to ${TARFILE_TMP}"
(cd ${TOP}; git archive --format=tar --prefix=${PKG_VER}/ ${GITREV}) > ${TARFILE_TMP}
ls -al ${TARFILE_TMP}