Only move manual pages around if necessary

This commit is contained in:
Pierre Pronchery 2016-08-14 21:27:28 +02:00
parent 737bf03121
commit b6ebc12eb4

View File

@ -867,6 +867,9 @@ EOF
#fix installation path for manual pages
if [ $DEPEND_docbookxsl -eq 1 ]; then
echo ""
echo ".include \"../../mk/bsd.prefs.mk\""
echo ""
echo ".if \${PKGMANDIR} != \"share/man\""
echo "post-install:"
for i in doc/*.xml; do
[ -f "$i" ] || continue
@ -876,6 +879,7 @@ EOF
done | $SORT
echo " \${RMDIR} \${DESTDIR}\${PREFIX}/share/man/man1"
echo " \${RMDIR} \${DESTDIR}\${PREFIX}/share/man"
echo ".endif"
fi
#options