From aaba1a8097d06eaedf475f97e89f05bc19c49987 Mon Sep 17 00:00:00 2001 From: CarmJos Date: Sat, 8 Jan 2022 02:01:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95Javadoc=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .scripts/copy-javadoc.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.scripts/copy-javadoc.sh b/.scripts/copy-javadoc.sh index c01673f..0be1eff 100644 --- a/.scripts/copy-javadoc.sh +++ b/.scripts/copy-javadoc.sh @@ -1,10 +1,17 @@ rm -rf docs mkdir -vp docs -for i in easyplugin*; do - if test -e "$i/target/apidocs/"; then - cp -vrf "$i/target/apidocs/*" "docs/$1/" +for FILE in easyplugin-*; do + + if test -e "$FILE/target/apidocs/"; then + + DOC_NAME="${FILE:11}" + mkdir -vp "docs/$DOC_NAME/" + + cp -vrf "$FILE/target/apidocs/*" "docs/$DOC_NAME/" + fi + done cp -vrf .documentation/javadoc/JAVADOC-README.md docs/README.md