From df7dca98253a2115a3860bb35088aa56f3ad772f Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 7 Jan 2002 15:44:08 +0000 Subject: fixed overwriting of install2 filtering, keep diagnostic and strict for debug mode. --- perl-install/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/Makefile b/perl-install/Makefile index e98215a3f..6debe136a 100644 --- a/perl-install/Makefile +++ b/perl-install/Makefile @@ -53,7 +53,8 @@ install_pms: $(DIRS) perl -pe 's/#[-+].*//; $$_ = "\n" if (/^=head/ .. /^=cut/) || /use (diagnostics|vars|strict)/' $$i > $(DESTREP4PMS)/$$i; \ done if [ "x$(PERL_INSTALL_DEBUG)" == "x" ]; then \ - perl -pe 's|#!/usr/bin/perl -d.*\n|#!/usr/bin/perl\n|' install2 > $(DESTREP4PMS)/install2; \ + perl -pe 's/#[-+].*//; $$_ = "\n" if (/^=head/ .. /^=cut/) || /use (diagnostics|vars|strict)/;\ + s|#!/usr/bin/perl -d.*\n|#!/usr/bin/perl\n|' install2 > $(DESTREP4PMS)/install2; \ else \ perl -pe 's|#!/usr/bin/perl.*\n|#!/usr/bin/perl -d \n|' install2 > $(DESTREP4PMS)/install2; \ fi \ -- cgit v1.2.1