[debrepatch] 01/01: Add reprodiff as a shortcut for outputting diffs into the build dir

Ximin Luo infinity0 at debian.org
Thu Dec 8 14:40:02 UTC 2016


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

infinity0 pushed a commit to branch master
in repository debrepatch.

commit ce70a4a0fa5b5b3083d9b1834bb1bf650a43ce47
Author: Ximin Luo <infinity0 at debian.org>
Date:   Thu Dec 8 15:37:03 2016 +0100

    Add reprodiff as a shortcut for outputting diffs into the build dir
---
 README.rst | 8 +++-----
 debrepatch | 7 +++++++
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/README.rst b/README.rst
index c829a18..0d56c18 100644
--- a/README.rst
+++ b/README.rst
@@ -33,12 +33,10 @@ Examples:
 $ ./all-patched-pkgs | xargs -rn1 ./debrepatch
 
 # Patch all packages and run them through reprotest and diffoscope. The output
-# will be stored in diff/$pkg.diffoscope, and if these are all empty that means
-# everything reproduced succesfully.
+# will be stored in build/$pkg.diffoscope, and if these are all empty then that
+# means everything reproduced succesfully.
 $ ./all-patched-pkgs | xargs -rn1 -I '{}' ./debrepatch -f '{}' \
-    reprotest --diffoscope-arg=--text --diffoscope-arg="$PWD/diff/{}.diffoscope" \
-              --diffoscope-arg=--output-empty
-              -- schroot unstable-amd64-sbuild
+    reprodiff -- schroot unstable-amd64-sbuild
 
 # Patch all packages and upload them to the "my-apt-repo" dput host
 $ ./all-patched-pkgs | xargs -rn1 -I '{}' ./debrepatch -f '{}' \
diff --git a/debrepatch b/debrepatch
index b6f2153..752b5c0 100755
--- a/debrepatch
+++ b/debrepatch
@@ -122,6 +122,13 @@ reprotest)
     set -x
     exec reprotest auto . "$@"
     ;;
+reprodiff)
+    set -x
+    exec reprotest auto . \
+        --diffoscope-arg=--text --diffoscope-arg="../../$srcpkg.diffoscope" \
+        --diffoscope-arg=--output-empty \
+        "$@"
+    ;;
 exec)
     set -x
     exec "$@"

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



More information about the Reproducible-commits mailing list