mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 20:59:02 +02:00
26 lines
748 B
Bash
Executable File
26 lines
748 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Called with $1 as the build directory.
|
|
# Set DEST in the environment to override the destination for testing purposes.
|
|
|
|
set -e
|
|
set -u
|
|
set -o pipefail
|
|
set -x
|
|
|
|
builddir=$(realpath "$1")
|
|
scriptdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
|
|
dest=${DEST:-docs@docs.yoctoproject.org:dashboard/gitstats}
|
|
|
|
cd $builddir
|
|
mkdir gitstats
|
|
gitstats ~/git/mirror/poky $builddir/gitstats/poky > /dev/null
|
|
gitstats ~/git/mirror/oecore $builddir/gitstats/oecore > /dev/null
|
|
gitstats ~/git/mirror/bitbake $builddir/gitstats/bitbake > /dev/null
|
|
gitstats ~/git/mirror/meta-openembedded $builddir/gitstats/meta-openembedded > /dev/null
|
|
|
|
rsync -irlp --checksum --ignore-times $builddir/gitstats/* ${dest}
|