diff options
author | wiz <wiz@pkgsrc.org> | 2003-07-12 15:34:37 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2003-07-12 15:34:37 +0000 |
commit | dc934dad21330ab698b971ca18403738ee837647 (patch) | |
tree | d35c9264cb9cfc2150dd4c13968e57c713461577 | |
parent | 89c32945fb73d6eeb6a6261463cd7aa7b4a0b46c (diff) | |
download | pkgsrc-dc934dad21330ab698b971ca18403738ee837647.tar.gz |
When generating a perl packlist, strip all leading slashes.
From Sergey Svishchev in PR 21754.
-rw-r--r-- | mk/bsd.pkg.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index b9f2b5944ab..41a23be7f1d 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1212 2003/07/12 10:21:33 wiz Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1213 2003/07/12 15:34:37 wiz Exp $ # # This file is in the public domain. # @@ -4373,10 +4373,10 @@ _IMAKE_MAN_CMD= PERL5_COMMENT= ( ${ECHO} "@comment The following lines are automatically generated"; \ ${ECHO} "@comment from the installed .packlist files." ) PERL5_PACKLIST_FILES= ( ${CAT} ${PERL5_PACKLIST}; for f in ${PERL5_PACKLIST}; do [ ! -f $$f ] || ${ECHO} $$f; done ) \ - | ${SED} -e "s,[ ].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,," \ + | ${SED} -e "s,[ ].*,," -e "s,/\./,/,g" -e "s,/*${PREFIX}/,," \ | ${SORT} -u PERL5_PACKLIST_DIRS= ( ${CAT} ${PERL5_PACKLIST}; for f in ${PERL5_PACKLIST}; do [ ! -f $$f ] || ${ECHO} $$f; done ) \ - | ${SED} -e "s,[ ].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,," \ + | ${SED} -e "s,[ ].*,," -e "s,/\./,/,g" -e "s,/*${PREFIX}/,," \ -e "s,^,@unexec \${RMDIR} -p %D/," \ -e "s,/[^/]*$$, 2>/dev/null || \${TRUE}," \ | ${SORT} -ur |