summaryrefslogtreecommitdiffstats
path: root/perl-install/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-09-08 11:14:58 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-09-08 11:14:58 +0000
commitc7ce6282bc6360e3106818c301c550523f7a1f7a (patch)
tree0c122786d23df1141f4f048a8052d32f3010915d /perl-install/Makefile
parentfdc0e52cf8c9cfae833f45ec59d35d640a7ce6cc (diff)
downloaddrakx-backup-do-not-use-c7ce6282bc6360e3106818c301c550523f7a1f7a.tar
drakx-backup-do-not-use-c7ce6282bc6360e3106818c301c550523f7a1f7a.tar.gz
drakx-backup-do-not-use-c7ce6282bc6360e3106818c301c550523f7a1f7a.tar.bz2
drakx-backup-do-not-use-c7ce6282bc6360e3106818c301c550523f7a1f7a.tar.xz
drakx-backup-do-not-use-c7ce6282bc6360e3106818c301c550523f7a1f7a.zip
no_comment
Diffstat (limited to 'perl-install/Makefile')
-rw-r--r--perl-install/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile
index 7ae8bb947..f9a160426 100644
--- a/perl-install/Makefile
+++ b/perl-install/Makefile
@@ -78,7 +78,7 @@ install_pms: all
for i in $(PMS); do \
dest=$(DESTREP4PMS)/`dirname $$i`; \
install -d $$dest; \
- perl -ne 'print #unless /^use (diagnostics|vars|strict)/' $$i > $(DESTREP4PMS)/$$i; \
+ perl -ne 'print unless (/^=head/ .. /^=cut/) || /^\s*#-/ || /use (diagnostics|vars|strict)/' $$i > $(DESTREP4PMS)/$$i; \
done
rm $(DESTREP4PMS)/c/c.xs.pm
@@ -117,7 +117,7 @@ get_needed_files: $(SO_FILES)
d=`echo $(DEST)/$$i | sed 's/\/usr\/local\//\/usr\//'`; \
install -d `dirname $$d` && \
if (echo $$i | grep -q "\.pm"); then \
- perl -ne '$$_ =~ /^__END__/ and exit(0); print unless /\s*#-/' $$i > $$d; \
+ perl -pe '$$_ =~ /^__END__/ and exit(0);' $$i > $$d; \
else \
cp -f $$i $$d; \
strip $$d 2>/dev/null || true; \