diff options
author | Jonathan Lebon <jonathan@jlebon.com> | 2020-06-17 15:48:31 -0400 |
---|---|---|
committer | Jonathan Lebon <jonathan@jlebon.com> | 2020-06-17 15:48:31 -0400 |
commit | 516c1340b3f8c352f487abc67c9d1f4ab8fac975 (patch) | |
tree | 5d9e707a8a958fc7cfc27082fa38c7acf1f42f5c /ci/make-git-snapshot.sh | |
parent | eb3fe35b0684ee6e2c4c514a49e8151c00ba59a0 (diff) | |
download | ostree-516c1340b3f8c352f487abc67c9d1f4ab8fac975.tar.gz |
ci: Remove libpaprci/ directory
And move everything that was in it directly in `ci/`. There's a bunch
more cleanups here that we need to do (and more changes to upstream from
the rpm-ostree copies of this).
Diffstat (limited to 'ci/make-git-snapshot.sh')
-rwxr-xr-x | ci/make-git-snapshot.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ci/make-git-snapshot.sh b/ci/make-git-snapshot.sh new file mode 100755 index 00000000..1a137bff --- /dev/null +++ b/ci/make-git-snapshot.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +srcdir=$1 +shift +PKG_VER=$1 +shift +GITREV=$1 +shift + +TARFILE=${PKG_VER}.tar +TARFILE_TMP=${TARFILE}.tmp + +set -x +set -e + +test -n "${srcdir}" +test -n "${PKG_VER}" +test -n "${GITREV}" + +TOP=$(git rev-parse --show-toplevel) + +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} +(cd ${TOP}; git submodule status) | while read line; do + rev=$(echo ${line} | cut -f 1 -d ' '); path=$(echo ${line} | cut -f 2 -d ' ') + echo "Archiving ${path} at ${rev}" + (cd ${srcdir}/${path}; git archive --format=tar --prefix=${PKG_VER}/${path}/ ${rev}) > submodule.tar + tar -A -f ${TARFILE_TMP} submodule.tar + rm submodule.tar +done +mv ${TARFILE_TMP} ${TARFILE} |