summaryrefslogtreecommitdiffstats
path: root/perl-install/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/Makefile')
-rw-r--r--perl-install/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile
index bbbcad83e..efd9b4d34 100644
--- a/perl-install/Makefile
+++ b/perl-install/Makefile
@@ -52,6 +52,11 @@ install_pms: $(DIRS)
perl -ne 'print' $$i > $(DESTREP4PMS)/$$i; \
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
+ else
+ perl -pe 's|#!/usr/bin/perl.*\n|#!/usr/bin/perl -d \n|' install2 > $(DESTREP4PMS)/install2
+ fi
# perl -pe 's/#-.*//; $$_ = "\n" if (/^=head/ .. /^=cut/) || /use (diagnostics)/' $$i > $(DESTREP4PMS)/$$i; \
cp share/*.rc $(DESTREP4PMS)