Skip to content
Snippets Groups Projects
Commit b68ae2f7 authored by Romain Bouvier's avatar Romain Bouvier
Browse files

Add a workaround for thunar documentation generation

- Since thunar!153,
we have thunar and thunarx documentations, which is not supported by the script
- This break the container build
parent 1448199e
No related branches found
No related tags found
1 merge request!67Add a workaround for thunar documentation generation
Pipeline #14302 passed
......@@ -40,6 +40,7 @@
<dt><span class="refentrytitle"><a href="garcon/index.html">garcon</a></span></dt>
<dt><span class="refentrytitle"><a href="xfce4-panel/index.html">xfce4-panel</a></span></dt>
<dt><span class="refentrytitle"><a href="thunar/index.html">thunar</a></span></dt>
<dt><span class="refentrytitle"><a href="thunarx/index.html">thunarx</a></span></dt>
<dt><span class="refentrytitle"><a href="tumbler/index.html">tumbler</a></span></dt>
</dl></div>
</body>
......
......@@ -45,10 +45,17 @@ for URL in ${REPOS}; do
echo "$(pwd): $(git describe)" >> /tmp/xfce_build_version_info.txt
# Retain HTML docs in /docs
if [[ -d "$(pwd)/docs" ]]; then
HTMLPATH=$(find "$(pwd)/docs" -name html)
if [[ ! -z "$HTMLPATH" ]]; then
mkdir -p "/docs/$NAME"
cp -a "$HTMLPATH/." "/docs/$NAME"
# Special case for thunar because it has docs for thunar and thunarx
if [[ "$NAME" == "thunar" ]]; then
mkdir -p "/docs/$NAME"{,x}
cp -a docs/reference/thunar/html/. "/docs/$NAME"
cp -a docs/reference/thunarx/html/. "/docs/$NAME"x
else
HTMLPATH=$(find "$(pwd)/docs" -name html)
if [[ ! -z "$HTMLPATH" ]]; then
mkdir -p "/docs/$NAME"
cp -a "$HTMLPATH/." "/docs/$NAME"
fi
fi
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment