summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-04-27 10:13:49 +0000
committerNicholas Clark <nick@ccl4.org>2008-04-27 10:13:49 +0000
commit05bc20f3049bc9fc0c4874ea91065f8f6d00d4b5 (patch)
tree60a47d0e435209c9a2298c3f0da939e5ac67ccbd /Makefile.SH
parent798518689d64e9ab055d8782c5c39291ab450b14 (diff)
downloadperl-05bc20f3049bc9fc0c4874ea91065f8f6d00d4b5.tar.gz
Use File::Find rather than shell globbing to get the list of *.pm files
to pass to AutoSplit::autosplit_lib_modules(). This way we only need to invoke miniperl once, and we don't miss anything that is 3 or more levels deep. p4raw-id: //depot/perl@33757
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 947f92244d..04bdabd687 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -875,10 +875,10 @@ $spitshell >>Makefile <<'!NO!SUBS!'
preplibrary: miniperl$(EXE_EXT) $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
@sh ./makedir lib/auto
@echo " AutoSplitting perl library"
- $(LDLIBPTH) $(RUN) ./miniperl -Ilib -e 'use AutoSplit; \
- autosplit_lib_modules(@ARGV)' lib/*.pm
- $(LDLIBPTH) $(RUN) ./miniperl -Ilib -e 'use AutoSplit; \
- autosplit_lib_modules(@ARGV)' lib/*/*.pm
+ $(LDLIBPTH) $(RUN) ./miniperl -Ilib -MAutoSplit -MFile::Find -e ' \
+ find ({no_chdir=>1, wanted => \
+ sub {autosplit_lib_modules($$_) if /\.pm$$/}}, \
+ "lib")'
$(MAKE) lib/re.pm
lib/Config.pod: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary