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

25 lines
409 B
Bash

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