Install documentation using ${INSTALL_DATA} rather than ${CP} to ensure that
ownerships and permissions come out right when port is built as a mortal user then installed as root PR: 86088 Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk>
This commit is contained in:
parent
b5cb030bac
commit
43b151ac9e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=142723
2 changed files with 16 additions and 2 deletions
|
@ -89,7 +89,14 @@ do-install-apidocs:
|
|||
.if !defined(NOPORTDOCS)
|
||||
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
||||
@${MKDIR} ${APIDOCSDIR}
|
||||
@${CP} -r ${JAVADOCDIR}/* ${APIDOCSDIR}
|
||||
@cd ${JAVADOCDIR} && for src in $$( ${FIND} . ) ; do \
|
||||
dst=${APIDOCSDIR}$${src#.} ; \
|
||||
if ${TEST} -d $$src ; then \
|
||||
${MKDIR} $$dst ; \
|
||||
else \
|
||||
${INSTALL_DATA} $$src $$dst ; \
|
||||
fi \
|
||||
done
|
||||
@for extradoc in ${EXTRADOCS} ; do \
|
||||
${INSTALL_DATA} ${INSTALL_WRKSRC}/$$extradoc ${DOCSDIR} ; \
|
||||
done
|
||||
|
|
|
@ -89,7 +89,14 @@ do-install-apidocs:
|
|||
.if !defined(NOPORTDOCS)
|
||||
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
||||
@${MKDIR} ${APIDOCSDIR}
|
||||
@${CP} -r ${JAVADOCDIR}/* ${APIDOCSDIR}
|
||||
@cd ${JAVADOCDIR} && for src in $$( ${FIND} . ) ; do \
|
||||
dst=${APIDOCSDIR}$${src#.} ; \
|
||||
if ${TEST} -d $$src ; then \
|
||||
${MKDIR} $$dst ; \
|
||||
else \
|
||||
${INSTALL_DATA} $$src $$dst ; \
|
||||
fi \
|
||||
done
|
||||
@for extradoc in ${EXTRADOCS} ; do \
|
||||
${INSTALL_DATA} ${INSTALL_WRKSRC}/$$extradoc ${DOCSDIR} ; \
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue