From: Andrea Zagli Date: Tue, 3 Sep 2019 12:01:25 +0000 (+0200) Subject: Inizio sviluppo script per controllo aggiornamento pacchetti debian del framework. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=a4a35aac7f0679c6a5ae2318f04d0e75a154c98e;p=msys2 Inizio sviluppo script per controllo aggiornamento pacchetti debian del framework. --- diff --git a/tools/autobuilder/debian_tobeupdated_all.sh b/tools/autobuilder/debian_tobeupdated_all.sh new file mode 100755 index 0000000..8c0cd42 --- /dev/null +++ b/tools/autobuilder/debian_tobeupdated_all.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +REMOTE=origin + +while getopts "r:" opt; do + case $opt in + r) + REMOTE=$OPTARG + esac +done + +BRANCHES=`git branch -rvv | grep $REMOTE | grep debian | awk '{print $1}'` + +> log.log + +for BRANCH in $BRANCHES +do + LEN=$((${#REMOTE} + 1)) + + BRANCH=${BRANCH:$LEN} + CHECKED=`git branch | grep $BRANCH` + + if [ "$CHECKED" = "" ]; then + echo "Branch $BRANCH to be checked" + fi + + git checkout $BRANCH &>> log.log +done