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

# Copyright 2015 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=$(linux64 --uname-2.6 uname -smrv)
for i in $BUILD_ENV_VARS ; do
	echo "$i=${!i}"
done