From 53bf0e766988c9fa6e6f2d2db15bd2927667fab6 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 11 Jun 2015 19:31:47 +0200 Subject: reproducible: refactor --- bin/reproducible_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_common.sh') diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 84df5d85..b0db0803 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -41,6 +41,8 @@ JENKINS_URL=${JENKINS_URL:0:-1} SUITES="testing unstable experimental" # arches being tested ARCHES="amd64" +# number of cores to be used +NUM_CPU=$(grep -c '^processor' /proc/cpuinfo) # existing usertags USERTAGS="toolchain infrastructure timestamps fileordering buildpath username hostname uname randomness buildinfo cpu signatures environment umask" @@ -270,7 +272,6 @@ write_explaination_table() { write_page "env LANGLANG=\"en_GB.UTF-8\"LANG=\"fr_CH.UTF-8\"" write_page "env LC_ALLunsetLC_ALL=\"fr_CH.UTF-8\"" write_page "env PATHPATH=\"/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:\"PATH=\"/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path\"" - local NUM_CPU=$(cat /proc/cpuinfo |grep '^processor'|wc -l) if [ "$1" = "debian" ] ; then write_page "env BUILDUSERIDBUILDUSERID=\"1111\"BUILDUSERID=\"2222\"" write_page "env BUILDUSERNAMEBUILDUSERNAME=\"pbuilder1\"BUILDUSERNAME=\"pbuilder2\"" -- cgit v1.2.3-54-g00ecf