Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison Makefile @ 559:cfc1a2151de4
Instead of applying multiple invocations of "sed" call it one with multiple commands (many "-e <command>" params)
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 11 Sep 2024 14:23:20 +0200 |
| parents | 3ae0d41945a7 |
| children | 330ebeb57515 |
comparison
equal
deleted
inserted
replaced
| 558:3ae0d41945a7 | 559:cfc1a2151de4 |
|---|---|
| 79 ${MKDIR} ${WRKSRC}/bin | 79 ${MKDIR} ${WRKSRC}/bin |
| 80 ${MKDIR} ${WRKSRC}/sbin | 80 ${MKDIR} ${WRKSRC}/sbin |
| 81 ${CP} Makefile ${WRKSRC}/Makefile | 81 ${CP} Makefile ${WRKSRC}/Makefile |
| 82 .for _rp in sbin/check-ports sbin/fjail sbin/ftjail sbin/fzfs sbin/fpkg sbin/bsmtp2dma | 82 .for _rp in sbin/check-ports sbin/fjail sbin/ftjail sbin/fzfs sbin/fpkg sbin/bsmtp2dma |
| 83 ${CP} -v ${SRC}/${_rp} ${WRKSRC}/${_rp} | 83 ${CP} -v ${SRC}/${_rp} ${WRKSRC}/${_rp} |
| 84 ${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" ${WRKSRC}/${_rp} | 84 ${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" -e "s|@@ETCDIR@@|${ETCDIR}|" -e "s|@@DATADIR@@|${DATADIR}|" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" -e "s|@@SIMPLEVERSIONSTR@@|${SIMPLEVERSIONSTR}|" ${WRKSRC}/${_rp} |
| 85 ${SED} -i "" -e "s|@@ETCDIR@@|${ETCDIR}|" ${WRKSRC}/${_rp} | |
| 86 ${SED} -i "" -e "s|@@DATADIR@@|${DATADIR}|" ${WRKSRC}/${_rp} | |
| 87 ${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_rp} | |
| 88 ${SED} -i "" -e "s|@@SIMPLEVERSIONSTR@@|${SIMPLEVERSIONSTR}|" ${WRKSRC}/${_rp} | |
| 89 .endfor | 85 .endfor |
| 90 ${MKDIR} ${WRKSRC}/etc/periodic/daily | 86 ${MKDIR} ${WRKSRC}/etc/periodic/daily |
| 91 .for _ef in etc/package-mapping.conf.sample etc/pkgtools.conf.sample etc/bsmtp2dma.conf.sample etc/periodic/daily/800.local-ipv6-refresh etc/periodic/daily/750.local-trim-zfs etc/periodic/daily/720.local-triggered-action | 87 .for _ef in etc/package-mapping.conf.sample etc/pkgtools.conf.sample etc/bsmtp2dma.conf.sample etc/periodic/daily/800.local-ipv6-refresh etc/periodic/daily/750.local-trim-zfs etc/periodic/daily/720.local-triggered-action |
| 92 ${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef} | 88 ${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef} |
| 93 ${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_ef} | 89 ${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_ef} |
