summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh4
-rwxr-xr-xbin/reproducible_stats.sh3
2 files changed, 5 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 225e39fd..e86948e4 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -51,6 +51,7 @@ echo "=============================================================="
echo
set -x
+NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l)
COUNT_TOTAL=0
COUNT_GOOD=0
COUNT_BAD=0
@@ -79,7 +80,6 @@ for SRCPACKAGE in $PACKAGES ; do
SKIPPED="${SRCPACKAGE} ${SKIPPED}"
continue
fi
- NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l)
sudo DEB_BUILD_OPTIONS="parallel=$NUM_CPU" pbuilder --build --basetgz /var/cache/pbuilder/base-reproducible.tgz --distribution sid ${SRCPACKAGE}_*.dsc
RESULT=$?
if [ $RESULT = 0 ] ; then
@@ -121,7 +121,7 @@ for SRCPACKAGE in $PACKAGES ; do
set +x
echo "=============================================================="
- echo "$COUNT_TOTAL of ${#@} done."
+ echo "$COUNT_TOTAL of ${#PACKAGES} done."
echo "=============================================================="
set -x
done
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh
index 27a4c2f9..d31f3b1c 100755
--- a/bin/reproducible_stats.sh
+++ b/bin/reproducible_stats.sh
@@ -24,8 +24,11 @@ echo
echo "Simple statistics for reproducible builds as tested on jenkins.debian.net so far"
echo
echo "$COUNT_TOTAL packages attempted to build in total."
+echo
echo "$COUNT_GOOD packages successfully built reproducibly: ${GOOD}"
+echo
echo "$COUNT_BAD packages failed to built reproducibly: ${BAD}"
+echo
echo "$COUNT_UGLY packages failed to build from source: ${UGLY}"
echo "$COUNT_SOURCELESS packages doesn't exist in sid and need investigation: $SOURCELESS"