develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #134204] [PATCH 1/2] enc2xs: Add environment variable tosuppress comments

From:
Joshua Watt
Date:
June 22, 2019 02:56
Subject:
[perl #134204] [PATCH 1/2] enc2xs: Add environment variable tosuppress comments
Message ID:
rt-4.0.24-20751-1560795291-475.134204-75-0@perl.org
# New Ticket Created by  Joshua Watt 
# Please include the string:  [perl #134204]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=134204 >


Comment generation in enc2xs can now be suppressed by setting the
ENC2XS_NO_COMMENTS environment variable. This allows enc2xs to produce
reproducible output by omitting the name of the generating program.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 cpan/Encode/bin/enc2xs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpan/Encode/bin/enc2xs b/cpan/Encode/bin/enc2xs
index 619b64b757..bfce9ee735 100644
--- a/cpan/Encode/bin/enc2xs
+++ b/cpan/Encode/bin/enc2xs
@@ -144,6 +144,7 @@ getopts('CM:SQqOo:f:n:v',\%opt);
 $opt{M} and make_makefile_pl($opt{M}, @ARGV);
 $opt{C} and make_configlocal_pm($opt{C}, @ARGV);
 $opt{v} ||= $ENV{ENC2XS_VERBOSE};
+$opt{q} ||= $ENV{ENC2XS_NO_COMMENTS};
 
 sub verbose {
     print STDERR @_ if $opt{v};
-- 
2.21.0




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About