summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_info.sh
blob: 55b2f5f295d2143f4697de15f5ac2c87204e0e90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# Copyright 2015-2016 Holger Levsen <holger@layer-acht.org>
# 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')
KERNEL=$(uname -smrv)
for i in $BUILD_ENV_VARS ; do
	echo "$i=${!i}"
done