Prepare migration to monorepo

This commit is contained in:
Cédric Krier
2022-12-16 23:16:08 +01:00
parent 1c143a3b84
commit 5d3e4a39f2
1207 changed files with 11522 additions and 20819 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
set -eu
OUTPUTDIR=`realpath "${1}"`
mkdir -p "${OUTPUTDIR}"
find . -path '*/doc/conf.py' | while read path; do
path=`dirname "${path}"`
path=`dirname "${path}"`
package=`basename "${path}"`
package=$(echo ${package} | sed "s/_/-/g")
if [ "${package}" = "trytond" ]; then
package="server"
elif [ "${package}" = "tryton" ]; then
package="client-desktop"
elif [ "${package}" = "proteus" ]; then
package="client-library"
elif [ "${package}" = "trytond-gis" ]; then
package="backend-gis"
else
package="modules-${package}"
fi
(cd "${path}" && python -m sphinx -T -E -b html doc "${OUTPUTDIR}/${package}")
done