[reprotest] 02/03: Add another CLI example on how to use our experimental toolchain

Ximin Luo infinity0 at debian.org
Tue May 9 17:47:47 UTC 2017


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

infinity0 pushed a commit to branch master
in repository reprotest.

commit 1dfb4ff078a47ef86f2f2fa75a7e0978eda15875
Author: Ximin Luo <infinity0 at debian.org>
Date:   Tue May 9 19:37:31 2017 +0200

    Add another CLI example on how to use our experimental toolchain
---
 README.rst   | 18 ++++++++++++++++++
 doc/Makefile |  6 ++++++
 2 files changed, 24 insertions(+)

diff --git a/README.rst b/README.rst
index a38ba49..964290b 100644
--- a/README.rst
+++ b/README.rst
@@ -109,6 +109,24 @@ Of course, all of this is a burden to remember, if you must run the same
 thing many times. So that is why adding new presets for new files would
 be good.
 
+Here is a more complex example. It tells reprotest to store the build products
+into ``./artifacts`` to analyse later; and also tweaks the "Debian dsc" preset
+so that it uses our `experimental toolchain
+<https://wiki.debian.org/ReproducibleBuilds/ExperimentalToolchain>`__.
+
+::
+
+    $ reprotest --store-dir=artifacts \
+        --auto-preset-expr '_.prepend.testbed_init("apt-get install -y wget 2>/dev/null; \
+            echo deb http://reproducible.alioth.debian.org/debian/ ./ >> /etc/apt/sources.list; \
+            wget -q -O- https://reproducible.alioth.debian.org/reproducible.asc | apt-key add -; \
+            apt-get update; apt-get upgrade -y 2>/dev/null; ")' \
+        auto ./bash_4.4-4.0~reproducible1.dsc \
+        -- \
+        schroot unstable-amd64-sbuild
+
+(Yes, this could be a lot nicer to achieve; we're working on it.)
+
 
 Config File
 ===========
diff --git a/doc/Makefile b/doc/Makefile
index 7dd1da5..47d5595 100755
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -5,6 +5,8 @@ VERSION = $$(cd .. && python3 setup.py -V)
 SED_rm_python_usage_msg = -e '/end_of_description_header/,/positional arguments/{d}'
 SED_fix_rst2man_quirks = -e 's,^ \\- ,,' -e 's,^\[,\\[char91],g'
 
+all: reprotest.1
+
 reprotest.1: reprotest.h2m ../reprotest/__init__.py
 	help2man --version-string=$(VERSION) ./reprotest -N --include="$<" | \
 	  sed $(SED_rm_python_usage_msg) > "$@"
@@ -14,3 +16,7 @@ reprotest.h2m: reprotest.h2m.0 ../README.rst Makefile
 	  rst2man --no-doc-title | \
 	  sed $(SED_fix_rst2man_quirks) \
 	      -e 's,\.SH \(.*\),[\1],g'; } > "$@"
+
+.PHONY: clean
+clean:
+	$(RM) reprotest.1 reprotest.h2m

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



More information about the Reproducible-commits mailing list