1
mirror of https://github.com/CarmJos/EasyPlugin.git synced 2024-09-20 03:35:48 +00:00
EasyPlugin/.scripts/copy-javadoc.sh

22 lines
375 B
Bash
Raw Normal View History

2022-01-07 17:47:49 +00:00
rm -rf docs
mkdir -vp docs
2022-01-07 18:26:32 +00:00
DOC_URL="target/site/apidocs"
2022-01-07 18:20:17 +00:00
2022-01-07 18:32:05 +00:00
for FILE in easyplugin-*; do
2022-01-07 18:01:28 +00:00
2022-01-07 18:32:05 +00:00
if test -e "$FILE/$DOC_URL"; then
2022-01-07 18:20:17 +00:00
2022-01-07 18:32:05 +00:00
MODULE_FILE="docs/${FILE:11}/"
2022-01-07 18:01:28 +00:00
2022-01-07 18:20:17 +00:00
mkdir -vp "$MODULE_FILE"
2022-01-07 18:01:28 +00:00
2022-01-07 18:32:05 +00:00
cp -vrf "$FILE"/"$DOC_URL"/* "$MODULE_FILE"
2022-01-07 18:01:28 +00:00
2022-01-07 17:47:49 +00:00
fi
2022-01-07 18:01:28 +00:00
2022-01-07 17:47:49 +00:00
done
cp -vrf .documentation/javadoc/JAVADOC-README.md docs/README.md
cp -vrf .documentation/javadoc/index.html docs/index.html