Brad Bishop | c8f4712 | 2019-06-24 09:36:18 -0400 | [diff] [blame] | 1 | From 31a2c5555f9ef32f35d7d5ce1fd09a010ba5f5c6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Joshua Watt <JPEWhacker@gmail.com> |
| 3 | Date: Mon, 17 Jun 2019 10:47:15 -0500 |
| 4 | Subject: [PATCH 1/2] enc2xs: Add environment variable to suppress comments |
| 5 | |
| 6 | Comment generation in enc2xs can now be suppressed by setting the |
| 7 | ENC2XS_NO_COMMENTS environment variable. This allows enc2xs to produce |
| 8 | reproducible output by omitting the name of the generating program. |
| 9 | |
| 10 | Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 11 | Upstream-Status: Accepted [https://github.com/dankogai/p5-encode/pull/145] |
Brad Bishop | c8f4712 | 2019-06-24 09:36:18 -0400 | [diff] [blame] | 12 | --- |
| 13 | cpan/Encode/bin/enc2xs | 1 + |
| 14 | 1 file changed, 1 insertion(+) |
| 15 | |
| 16 | diff --git a/cpan/Encode/bin/enc2xs b/cpan/Encode/bin/enc2xs |
| 17 | index 619b64b757..bfce9ee735 100644 |
| 18 | --- a/cpan/Encode/bin/enc2xs |
| 19 | +++ b/cpan/Encode/bin/enc2xs |
| 20 | @@ -144,6 +144,7 @@ getopts('CM:SQqOo:f:n:v',\%opt); |
| 21 | $opt{M} and make_makefile_pl($opt{M}, @ARGV); |
| 22 | $opt{C} and make_configlocal_pm($opt{C}, @ARGV); |
| 23 | $opt{v} ||= $ENV{ENC2XS_VERBOSE}; |
| 24 | +$opt{q} ||= $ENV{ENC2XS_NO_COMMENTS}; |
| 25 | |
| 26 | sub verbose { |
| 27 | print STDERR @_ if $opt{v}; |
| 28 | -- |
| 29 | 2.21.0 |
| 30 | |