summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_info.sh14
1 files changed, 14 insertions, 0 deletions
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 <holger@layer-acht.org>
+# 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