ci/make-git-snapshot.sh: auto-initialize submodules
Matches `autogen.sh`.
This commit is contained in:
parent
8d45298a2d
commit
92c396c82b
|
|
@ -11,6 +11,10 @@ PKG_VER="${name}-${version}"
|
||||||
TARFILE=${PKG_VER}.tar
|
TARFILE=${PKG_VER}.tar
|
||||||
TARFILE_TMP=${TARFILE}.tmp
|
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}"
|
echo "Archiving ${PKG_VER} at ${GITREV} to ${TARFILE_TMP}"
|
||||||
(cd ${TOP}; git archive --format=tar --prefix=${PKG_VER}/ ${GITREV}) > ${TARFILE_TMP}
|
(cd ${TOP}; git archive --format=tar --prefix=${PKG_VER}/ ${GITREV}) > ${TARFILE_TMP}
|
||||||
ls -al ${TARFILE_TMP}
|
ls -al ${TARFILE_TMP}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue