LDoc: check for screenshot before copying

This commit is contained in:
Jordan Irwin 2021-08-11 03:53:21 -07:00
parent 6fbdc43534
commit b00b3480a2

View File

@ -67,7 +67,10 @@ for vinfo in $(git tag -l --sort=-v:refname | grep "^v[0-9]"); do
rm -f "${d_ldoc}/README.md"
screenshot="${d_root}/screenshot.png"
if test -f "${screenshot}"; then
cp "${d_root}/screenshot.png" "${d_export}"
fi
if test -d "${d_root}/textures"; then
# copy textures to data directory