diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2003-09-07 12:59:22 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2003-09-07 12:59:22 +0000 |
commit | 68de25ddb41f09cb5fa06f8ab7e139dda82a677a (patch) | |
tree | eaa3793b7180a7801af3318959ad0f15010c5a43 /share/mk/bsd.man.mk | |
parent | 7b0ac2826b5ed8c746dfbc0f8778df3d04ba594f (diff) |
Implement sed(1) commands using the make(1)'s RE variable modifier.
(This almost eliminates the need of a sed(1) during installworld.)
Notes
Notes:
svn path=/head/; revision=119838
Diffstat (limited to 'share/mk/bsd.man.mk')
-rw-r--r-- | share/mk/bsd.man.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/mk/bsd.man.mk b/share/mk/bsd.man.mk index 9cac378e61e8..4a06c583ec1c 100644 --- a/share/mk/bsd.man.mk +++ b/share/mk/bsd.man.mk @@ -173,7 +173,7 @@ _maninstall: ${MAN} .endif .endfor .else - @set `echo ${.ALLSRC} " " | sed 's/\.\([^.]*\) /.\1 \1 /g'`; \ + @set ${.ALLSRC:C/\.([^.]*)$/.\1 \1/}; \ while : ; do \ case $$# in \ 0) break;; \ @@ -204,7 +204,7 @@ _maninstall: ${MAN} .endif .if !defined(NOMLINKS) && defined(MLINKS) && !empty(MLINKS) - @set `echo ${MLINKS} " " | sed 's/\.\([^.]*\) /.\1 \1 /g'`; \ + @set ${MLINKS:C/\.([^.]*)$/.\1 \1/}; \ while : ; do \ case $$# in \ 0) break;; \ @@ -219,7 +219,7 @@ _maninstall: ${MAN} ln $${l}${ZEXT} $${t}${ZEXT}; \ done .if defined(MANBUILDCAT) && !empty(MANBUILDCAT) - @set `echo ${MLINKS} " " | sed 's/\.\([^.]*\) /.\1 \1 /g'`; \ + @set ${MLINKS:C/\.([^.]*)$/.\1 \1/}; \ while : ; do \ case $$# in \ 0) break;; \ |