yocto-autobuilder-helper/scripts/run-dashboard-index
Richard Purdie c6b8047092 scripts/run-dashboard-index: Correct rsync command
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-03-05 16:50:43 +00:00

621 B
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/}

cd $builddir $scriptdir/release-parser.py $scriptdir/layer-parser.py

rsync -irlp --checksum --ignore-times releases.json ${dest} rsync -irlp --checksum --ignore-times parsed-layers.json ${dest} rsync -irlp --checksum --ignore-times $scriptdir/dashboard/* ${dest}