From f8cdb73c69a7544cbef5532fa6d241491ff3e140 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 30 Aug 2015 22:38:33 +0200 Subject: reproducible: add script to capture build node information (work in progress) --- bin/reproducible_info.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/reproducible_info.sh (limited to 'bin') diff --git a/bin/reproducible_info.sh b/bin/reproducible_info.sh new file mode 100755 index 00000000..c73fef65 --- /dev/null +++ b/bin/reproducible_info.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Copyright 2015 Holger Levsen +# released under the GPLv=2 + +set -e + +ARCH=$(dpkg --print-architecture) +NUM_CPU=$(grep -c '^processor' /proc/cpuinfo) +DATETIME=$(date +'%Y-%m-%d %H:%M %Z') + +for i in ARCH NUM_CPU DATETIME ; do + echo "$i['$HOSTNAME']=\"${!i}\"" +done -- cgit v1.2.3-70-g09d2