summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTim Bunce <Tim.Bunce@ig.co.uk>1997-09-05 00:00:00 +1200
committerTim Bunce <Tim.Bunce@ig.co.uk>1997-09-05 00:00:00 +1200
commit5edeba26b03ae80ec926e67d2266f2fca8a0c92b (patch)
treef5c2cd3a82859167ce820206970219f78ce6a6e4 /utils
parentdc53cb16caf275be0324ed5c064205ac962ecbf3 (diff)
downloadperl-5edeba26b03ae80ec926e67d2266f2fca8a0c92b.tar.gz
perlbug -d non-interactive (with patch)
(this is the same change as commit 3eccf6d0e7f74349d397cf28f511c9dfc1b064ba, but as applied)
Diffstat (limited to 'utils')
-rw-r--r--utils/perlbug.PL8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/perlbug.PL b/utils/perlbug.PL
index 43b6bfcd8e..6b670fc46b 100644
--- a/utils/perlbug.PL
+++ b/utils/perlbug.PL
@@ -41,6 +41,10 @@ while (<PATCH_LEVEL>) {
close PATCH_LEVEL;
+# TO DO (prehaps): store/embed $Config::config_sh into perlbug. When perlbug is
+# used, compare $Config::config_sh with the stored version. If they differ then
+# append a list of individual differences to the bug report.
+
print "Extracting $file (with variable substitutions)\n";
@@ -114,6 +118,8 @@ Init();
if($::opt_h) { Help(); exit; }
+if($::opt_d) { Dump(*STDOUT); exit; }
+
if(!-t STDIN) {
paraprint <<EOF;
Please use perlbug interactively. If you want to
@@ -122,7 +128,7 @@ EOF
die "\n";
}
-if($::opt_d or !-t STDOUT) { Dump(*STDOUT); exit; }
+if(!-t STDOUT) { Dump(*STDOUT); exit; }
Query();
Edit() unless $usefile;