diff options
Diffstat (limited to 'bin/reproducible_info.sh')
-rwxr-xr-x | bin/reproducible_info.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/reproducible_info.sh b/bin/reproducible_info.sh index e6d0bb54..3b66e6e5 100755 --- a/bin/reproducible_info.sh +++ b/bin/reproducible_info.sh @@ -4,12 +4,15 @@ # released under the GPLv=2 set -e +# common code defining BUILD_ENV_VARS +. /srv/jenkins/bin/reproducible_common.sh +# these variables also need to be in bin/reproducible_common.sh where they define $BUILD_ENV_VARS (see right below) ARCH=$(dpkg --print-architecture) NUM_CPU=$(grep -c '^processor' /proc/cpuinfo) CPU_MODEL=$(cat /proc/cpuinfo |grep "model name"|head -1|cut -d ":" -f2|xargs echo) DATETIME=$(date +'%Y-%m-%d %H:%M %Z') -for i in ARCH NUM_CPU CPU_MODEL DATETIME ; do +for i in $BUILD_ENV_VARS ; do echo "$i=${!i}" done |