diff options
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/perl5.mk | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Mk/Uses/perl5.mk b/Mk/Uses/perl5.mk index a756fc68aede..cc8581ba57ef 100644 --- a/Mk/Uses/perl5.mk +++ b/Mk/Uses/perl5.mk @@ -271,10 +271,9 @@ PACKLIST_DIR?= ${PREFIX}/${SITE_ARCH_REL}/auto fix-perl-things: # Remove STAGEDIR from .packlist and add the file to the plist. @(if [ -d ${STAGEDIR}${PACKLIST_DIR} ] ; then \ - cd ${STAGEDIR} ; \ - find .${PACKLIST_DIR} -name .packlist | while read f ; do \ + find ${STAGEDIR}${PACKLIST_DIR} -name .packlist | while read f ; do \ ${SED} -i '' 's|^${STAGEDIR}||' "$$f"; \ - ${ECHO} $$f >> ${PLIST}; \ + ${ECHO} $$f | ${SED} -e 's|^${STAGEDIR}||' >> ${TMPPLIST}; \ done \ fi) || : |