solomax commented on code in PR #14:
URL: https://github.com/apache/openjpa-site/pull/14#discussion_r4595739115


##########
add_docs.sh:
##########
@@ -1,19 +1,61 @@
 #!/bin/sh
-# parameter 1 is the project version, e.g. 2.4.1
-# parameter 2 is the path to the openjpa binary.zip
-# 
-# To build the openjpa binary.zip go to the tag and start with 
-# $> mvn clean site install -DskipTests 
-Pjavadoc-profile,docbook-profile,test-derby
+# Copies the documentation of a release into this branch.
+#
+# parameter 1 is the project version, e.g. 4.2.0
+# parameter 2 is the path to apache-openjpa-<version>-binary.zip from the 
release
+# parameter 3 (optional) is the aggregated javadoc of the release, as a 
directory or
+#             as a jar/zip, used when the binary zip contains no docs/javadoc 
(see
+#             RELEASING.md in the openjpa repository for how to build it)
+#
+# Layouts:
+# - up to 4.1.x the binary zip has docs/docbook (multi page manual with 
main.html,
+#   manual.html and manual.pdf) and docs/javadoc
+# - from 4.2.0 the manual is built with AsciiDoc: docs/multihtml/manual.html,
+#   docs/html/manual.html and docs/manual.pdf; the javadoc is not in the zip
+#
+# Result: <version>/apache-openjpa/RELEASE-NOTES.html, 
<version>/apache-openjpa/docs/...
+#         and <version>/apidocs/
+set -e
 
-mkdir $1
-cd $1
+if [ $# -lt 2 ]; then
+    echo "usage: $0 <version> <apache-openjpa-version-binary.zip> [javadoc 
directory or jar]" >&2

Review Comment:
   BTW I've add auto-version detection to the TCK script
   It also can be used here



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to