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:
Herve Quiroz 2005-09-14 16:41:23 +00:00
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

View file

@ -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

View file

@ -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