blob: 547cbcc5b8e826b4e8daf3bfc839dabaec2bfc3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/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')
KERNEL1=$(uname -smrv)
KERNEL2=$(linux64 --uname-2.6 uname -smrv)
for i in $BUILD_ENV_VARS ; do
echo "$i=${!i}"
done
|