summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2000-02-15 16:08:23 +0000
committeragc <agc@pkgsrc.org>2000-02-15 16:08:23 +0000
commitcdfb68b4bfb6e6908a03a27f19a86b0799d0956d (patch)
tree7832e52ca47fed9641a67c17c660ff97f03551bf /editors
parentafc5a24c0ab310debff35dac5e7ca271f1989e40 (diff)
downloadpkgsrc-cdfb68b4bfb6e6908a03a27f19a86b0799d0956d.tar.gz
Factor out common commands in post-install target into two for loops.
Diffstat (limited to 'editors')
-rw-r--r--editors/vim-gtk/Makefile24
1 files changed, 9 insertions, 15 deletions
diff --git a/editors/vim-gtk/Makefile b/editors/vim-gtk/Makefile
index b569b66fa5a..5186a666170 100644
--- a/editors/vim-gtk/Makefile
+++ b/editors/vim-gtk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2000/02/15 15:44:15 agc Exp $
+# $NetBSD: Makefile,v 1.15 2000/02/15 16:08:23 agc Exp $
.include "../vim-share/Makefile.common"
@@ -31,19 +31,13 @@ CONFIGURE_ARGS+= --with-tlib=curses
.endif
post-install:
- ${RM} -f ${PREFIX}/man/man1/gvim.1 ${PREFIX}/man/man1/gview.1
- ${RM} -f ${PREFIX}/man/man1/rgvim.1 ${PREFIX}/man/man1/rgview.1
- ${RM} -f ${PREFIX}/bin/gvim ${PREFIX}/bin/gview ${PREFIX}/bin/rgvim
- ${RM} -f ${PREFIX}/bin/rgview ${PREFIX}/bin/rvim ${PREFIX}/bin/rview
- ${LN} -s vim.1 ${PREFIX}/man/man1/gvim.1
- ${LN} -s vim.1 ${PREFIX}/man/man1/gview.1
- ${LN} -s vim.1 ${PREFIX}/man/man1/rgvim.1
- ${LN} -s vim.1 ${PREFIX}/man/man1/rgview.1
- ${LN} -s vim ${PREFIX}/bin/gvim
- ${LN} -s vim ${PREFIX}/bin/gview
- ${LN} -s vim ${PREFIX}/bin/rgvim
- ${LN} -s vim ${PREFIX}/bin/rgview
- ${LN} -s vim ${PREFIX}/bin/rvim
- ${LN} -s vim ${PREFIX}/bin/rview
+ for f in gvim.1 gview.1 rgvim.1 rgview.1; do \
+ ${RM} -f ${PREFIX}/man/man1/$$f; \
+ ${LN} -s vim.1 ${PREFIX}/man/man1/$$f; \
+ done
+ for f in gvim gview rgvim rgview rvim rview; do \
+ ${RM} -f ${PREFIX}/bin/$$f; \
+ ${LN} -s vim ${PREFIX}/bin/$$f; \
+ done
.include "../../mk/bsd.pkg.mk"