From 860e3d13b175e25d8b4772ba22ab59c8182c65b3 Mon Sep 17 00:00:00 2001 From: NeuroDebian Date: Mon, 10 Jan 2011 11:04:30 -0500 Subject: [PATCH] tools/nd_build: generate/update summary.build file with OK/FAILED per .build --- tools/nd_build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/nd_build b/tools/nd_build index 72c7d00..9987817 100755 --- a/tools/nd_build +++ b/tools/nd_build @@ -89,10 +89,15 @@ for a in $arch; do options="$opts --debbuildopts -B" fi echo "Building for $family $dist $a ..." + buildfile="${dscfile%.dsc}_${a}.build" cowbuilder --build $dscfile \ --basepath ${cowbuilderroot}/cow/${family}-${dist}-${a}.cow \ --buildresult . \ - --logfile ${dscfile%.dsc}_${a}.build \ + --logfile "${buildfile}" \ $options \ - "$@" + "$@" && status='OK' || status='FAILED' + # Update the summary of builds + touch summary.build # Assure existence + sed -i -e '/${buildfile}/d' summary.build # Prune previous entry + echo -e "${buildfile}\t$status" >> summary.build # Add current one done -- 2.39.5