1
mirror of https://github.com/CarmJos/EasyPlugin.git synced 2024-09-20 11:45:48 +00:00
EasyPlugin/.scripts/copy-javadoc.sh
2022-01-08 02:04:10 +08:00

19 lines
361 B
Bash

rm -rf docs
mkdir -vp docs
for FILE in easyplugin-*; do
if test -e "$FILE/target/site/apidocs/"; then
DOC_NAME="${FILE:11}"
mkdir -vp "docs/$DOC_NAME/"
cp -vrf "$FILE/target/site/apidocs/*" "docs/$DOC_NAME/"
fi
done
cp -vrf .documentation/javadoc/JAVADOC-README.md docs/README.md
cp -vrf .documentation/javadoc/index.html docs/index.html