aboutsummaryrefslogtreecommitdiff
path: root/lang/ghc/bsd.cabal.mk
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2011-06-03 17:05:33 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2011-06-03 17:05:33 +0000
commit5bbc9dea6862955fdde9790e3a35f09054f826fc (patch)
tree9f667773d900594c11480ab5c4e0df7ae6e1ea84 /lang/ghc/bsd.cabal.mk
parentc499d7fdcb9df31ee15f4956e93a1f30695d0bf5 (diff)
downloadports-5bbc9dea6862955fdde9790e3a35f09054f826fc.tar.gz
ports-5bbc9dea6862955fdde9790e3a35f09054f826fc.zip
Notes
Diffstat (limited to 'lang/ghc/bsd.cabal.mk')
-rw-r--r--lang/ghc/bsd.cabal.mk13
1 files changed, 8 insertions, 5 deletions
diff --git a/lang/ghc/bsd.cabal.mk b/lang/ghc/bsd.cabal.mk
index a173c8162733..301d3785bab9 100644
--- a/lang/ghc/bsd.cabal.mk
+++ b/lang/ghc/bsd.cabal.mk
@@ -347,10 +347,10 @@ add-plist-cabal:
(${ECHO_CMD} '${DOCSDIR_REL}/${FILE_LICENSE}'; \
${ECHO_CMD} '@unexec ${RMDIR} "%D/${DOCSDIR_REL}" 2>/dev/null || true') >>${TMPPLIST}; fi
.else
- @(${ECHO_CMD} '@exec [ -f %D/${GHC_LIB_DOCSDIR_REL}/gen_contents_index ] && ${LN} -s ${DOCSDIR}/html %D/${GHC_LIB_DOCSDIR_REL}/${DISTNAME}' ; \
- ${ECHO_CMD} '@exec ${SH} -c "[ -f %D/${GHC_LIB_DOCSDIR_REL}/gen_contents_index ] && cd %D/${GHC_LIB_DOCSDIR_REL} && ${RM} -f doc-index*.html && ./gen_contents_index"' ; \
+ @(${ECHO_CMD} '@exec if [ -f %D/${GHC_LIB_DOCSDIR_REL}/gen_contents_index ]; then ${LN} -s ${DOCSDIR}/html %D/${GHC_LIB_DOCSDIR_REL}/${DISTNAME} && \
+ cd %D/${GHC_LIB_DOCSDIR_REL} && ${RM} -f doc-index*.html && ./gen_contents_index; fi' ; \
${ECHO_CMD} '@unexec ${RM} -f %D/${GHC_LIB_DOCSDIR_REL}/${DISTNAME}' ; \
- ${ECHO_CMD} '@unexec ${SH} -c "[ -f %D/${GHC_LIB_DOCSDIR_REL}/gen_contents_index ] && cd %D/${GHC_LIB_DOCSDIR_REL} && ${RM} -f doc-index*.html && ./gen_contents_index"') >>${TMPPLIST};
+ ${ECHO_CMD} '@unexec if [ -f %D/${GHC_LIB_DOCSDIR_REL}/gen_contents_index ]; then cd %D/${GHC_LIB_DOCSDIR_REL} && ${RM} -f doc-index*.html && ./gen_contents_index; fi') >>${TMPPLIST};
.endif
.else
${DO_NADA}
@@ -359,8 +359,11 @@ add-plist-cabal:
post-install::
.if !defined(METAPORT)
.if !defined(NOPORTDOCS)
- [ -f ${PREFIX}/${GHC_LIB_DOCSDIR_REL}/gen_contents_index ] && ${LN} -s ${DOCSDIR}/html ${PREFIX}/${GHC_LIB_DOCSDIR_REL}/${DISTNAME} && \
- cd ${PREFIX}/${GHC_LIB_DOCSDIR_REL} && ${RM} -f doc-index*.html && ./gen_contents_index
+ @if [ -f ${PREFIX}/${GHC_LIB_DOCSDIR_REL}/gen_contents_index ]; then \
+ ${LN} -s ${DOCSDIR}/html ${PREFIX}/${GHC_LIB_DOCSDIR_REL}/${DISTNAME} && \
+ cd ${PREFIX}/${GHC_LIB_DOCSDIR_REL} && \
+ ${RM} -f doc-index*.html && ./gen_contents_index; \
+ fi
.endif
.if !defined(STANDALONE) && !defined(DOCUMENTATION)