summaryrefslogtreecommitdiff
path: root/editors/vim5/Makefile
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-05-24 08:55:37 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-05-24 08:55:37 +0000
commit77c62b456a1e544af56c0fd29760f31d2b401d31 (patch)
tree3eb77afc4ba4886869205a51a9d1fb283adf1a08 /editors/vim5/Makefile
parentChase the directory layout on ftp.redhat.com, no checksum changes. (diff)
I am tired of chasing the Vim support files (help, syntax, etc..).
Dynamically produce the share portion of pkg-plist at install time.
Notes
Notes: svn path=/head/; revision=42999
Diffstat (limited to 'editors/vim5/Makefile')
-rw-r--r--editors/vim5/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/editors/vim5/Makefile b/editors/vim5/Makefile
index 561c185ac4c4..fe85ecd11f64 100644
--- a/editors/vim5/Makefile
+++ b/editors/vim5/Makefile
@@ -97,5 +97,20 @@ post-install:
test -e ${PREFIX}/bin/rgview || (cd ${PREFIX}/bin ; ${LN} -s vim rgview)
@${RM} -f ${PREFIX}/man/man1/etags.1
@${MV} ${PREFIX}/man/man1/ctags.1 ${PREFIX}/man/man1/ectags.1
+ cd ${PREFIX} ;\
+ find share/vim/${DISTNAME:S/-//:S/.//}/ -type f -o -type l \
+ | sort \
+ >${WRKDIR}/PLIST.share-vim
+ cd ${PREFIX} ;\
+ find share/vim/${DISTNAME:S/-//:S/.//}/ -type d \
+ | sort -r | ${SED} -e 's/^/@dirrm /g' \
+ >>${WRKDIR}/PLIST.share-vim
+ ${ECHO} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
+ ${ECHO} "/Insert PLIST.share-vim" >> ${WRKDIR}/ex.script
+ ${ECHO} "d" >> ${WRKDIR}/ex.script
+ ${ECHO} "r ${WRKDIR}/PLIST.share-vim" >> ${WRKDIR}/ex.script
+ ${ECHO} "x!" >> ${WRKDIR}/ex.script
+ ${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-share-vim
+ cd ${WRKDIR} ; ex < ex.script
.include <bsd.port.post.mk>