зеркало из https://github.com/nextcloud/desktop.git
removing asciidoc, now creating manpages via sphinx again
This commit is contained in:
Родитель
1a907f23f0
Коммит
0285213140
|
@ -43,20 +43,12 @@ if(SPHINX_FOUND)
|
|||
-d ${SPHINX_CACHE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${SPHINX_HTML_DIR} )
|
||||
add_custom_target( doc-sphinx-man ${SPHINX_EXECUTABLE}
|
||||
add_custom_target( doc-man ${SPHINX_EXECUTABLE}
|
||||
-q -c . -b man
|
||||
-d ${SPHINX_CACHE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${SPHINX_MAN_DIR} )
|
||||
|
||||
file(GLOB _manpages *.[0-9].txt)
|
||||
add_custom_target(doc-man
|
||||
COMMAND
|
||||
MAN_DIR=${SPHINX_MAN_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/makeman.sh ${_manpages}
|
||||
WORKING_DIRECTORY
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
## Building CHM files requires HTML Help Workshop. Since it requires wine
|
||||
## with special dependencies, it's impossible to write a cmake check for it.
|
||||
## This is why doc-chm is not a dependency for doc. Instead, run
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
#
|
||||
# Customization for owncloud documentation.
|
||||
#
|
||||
[specialwords]
|
||||
ifndef::doctype-manpage[]
|
||||
emphasizedwords=(?u)\\?\bownCloud\b
|
||||
monospacedwords=(?u)\\?\bowncloud\(1\)
|
||||
monospacedwords=(?u)\\?\bmirall\(1\)
|
||||
endif::doctype-manpage[]
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Last Change: 2008-07-03 11:08:54
|
||||
|
||||
if [ "x${MAN_DIR}" == 'x' ]; then
|
||||
MAN_DIR=`pwd`
|
||||
fi
|
||||
|
||||
mkdir -p ${MAN_DIR}
|
||||
|
||||
for f in $@; do
|
||||
test "${f##*/}" = "CMakeLists.txt" && continue
|
||||
echo -e "\e[32mCreating manpage ${f%.*}\e[0m"
|
||||
a2x --doctype=manpage --format=manpage $f --destination-dir ${MAN_DIR}
|
||||
rm -f ${f%.*}.xml
|
||||
done
|
Загрузка…
Ссылка в новой задаче