#!/bin/bash PARENTDIR=`realpath $1` TARGETDIR=`realpath $2` RESULTSDIR=`realpath $3` git clone ssh://git@push.yoctoproject.org/yocto-metrics $1/yocto-metrics $1/scripts/contrib/patchreview.py $2 -j $1/yocto-metrics/patch-status.json git -C $1/yocto-metrics commit -asm "Autobuilder adding new patch stats" git -C $1/yocto-metrics push if [ ! -d $RESULTSDIR ]; then mkdir $RESULTSDIR fi cp $1/yocto-metrics/patch-status.json $RESULTSDIR cp $1/yocto-metrics/patch-status/* $RESULTSDIR