[Reproducible-builds] [misc] 01/01: changes2buildinfo: add a crude awk script to turn a .changes into a bogus .buildinfo for experimentation purpose

Jérémy Bobbio lunar at moszumanska.debian.org
Sun Aug 31 03:22:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository misc.

commit b02cc4e915b47411a719306726d27efdeaa954ee
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sun Aug 31 03:21:57 2014 +0000

    changes2buildinfo: add a crude awk script to turn a .changes into a bogus .buildinfo for experimentation purpose
---
 changes2buildinfo | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/changes2buildinfo b/changes2buildinfo
new file mode 100755
index 0000000..dc6e594
--- /dev/null
+++ b/changes2buildinfo
@@ -0,0 +1,43 @@
+#!/usr/bin/awk -f
+
+# Stupid and harsh script to transform .changes into an incomplete .buildinfo.
+# Just good enough to start experimenting some more with an `srebuild` script.
+
+/^[^ ]/ {
+  stanza = 0;
+}
+/^Format:/ {
+  print $0;
+  next;
+}
+/^Source:/ {
+  print $0;
+  next;
+}
+/^Binary:/ {
+  print $0;
+  next;
+}
+/^Architecture:/ {
+  gsub(/ source /, " ");
+  print $0;
+  gsub(/Architecture:/, "");
+  gsub(/ all /, "");
+  architecture = $0;
+}
+/^Checksums-Sha256:/ {
+  stanza = 1;
+  print $0;
+  next;
+}
+/^ / {
+  if (stanza) {
+    print $0;
+  }
+  next;
+}
+END {
+    print "Build-Architecture: " architecture
+    print "Build-Environment:";
+    print "# TODO!";
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-builds mailing list