[reprotest] 03/04: Add a bin/reprotest to match diffoscope.

Chris Lamb chris at chris-lamb.co.uk
Sun Mar 18 20:59:18 UTC 2018


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

lamby pushed a commit to branch master
in repository reprotest.

commit cd3db7508dbd2c46d18f891a14378e0a4411cb6c
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Mar 18 16:45:11 2018 -0400

    Add a bin/reprotest to match diffoscope.
---
 bin/reprotest | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/bin/reprotest b/bin/reprotest
new file mode 100755
index 0000000..00d774f
--- /dev/null
+++ b/bin/reprotest
@@ -0,0 +1,19 @@
+#!/usr/bin/env python3
+#
+# Licensed under the GPL: https://www.gnu.org/licenses/gpl-3.0.en.html
+# For details: reprotest/debian/copyright
+
+import os
+import sys
+
+# Prefer local modules over any system-installed ones to ensure that running a
+# Git version from any current working directory does not have unexpected
+# behaviour.
+parent = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+if os.path.exists(os.path.join(parent, 'reprotest', '__init__.py')):
+    sys.path.insert(0, parent)
+
+from reprotest import main  # noqa
+
+if __name__ == '__main__':
+    main()

-- 
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