Added a tool to create JavaDoc documentation more easily
authormj <mj>
Sun, 23 Sep 2001 09:52:14 +0000 (09:52 +0000)
committermj <mj>
Sun, 23 Sep 2001 09:52:14 +0000 (09:52 +0000)
doc/classpath.sh [new file with mode: 0755]
doc/classpathrc [new file with mode: 0755]
doc/makejavadoc.sh [new file with mode: 0755]

diff --git a/doc/classpath.sh b/doc/classpath.sh
new file mode 100755 (executable)
index 0000000..b1fdb78
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+# Usage:
+# classpath.sh [ownpath]
+#
+# ownpath: anzuhaengende persoenliche Klassen-Pfade
+#
+
+
+RCFILE=classpathrc
+
+# classpathrc auswerten
+DUM=$( cat $RCFILE )
+       
+# Zeilenumbrueche entfernen und Tilde erweitern
+DUM2=$( for i in $DUM ; do eval echo -n "$i:" ; done )
+
+# Sicherstellen, dass kein doppelter Doppelpunkt in CLASSPATH enthalten ist. Nur wegen der Sicherheit.
+echo "$(/bin/echo $DUM2 | /bin/sed -e "s/::/:/g")"
+
diff --git a/doc/classpathrc b/doc/classpathrc
new file mode 100755 (executable)
index 0000000..04571da
--- /dev/null
@@ -0,0 +1,2 @@
+XXXUNCONFIGUREDXXX
+/pub/Dokumente/Indymedia/de-tech/Mir/WEB-INF/lib/*.jar
diff --git a/doc/makejavadoc.sh b/doc/makejavadoc.sh
new file mode 100755 (executable)
index 0000000..1a3a674
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# Generates JavaDoc documentation of the Mir sources
+
+if ( grep XXXUNCONFIGUREDXXX classpathrc > /dev/null ); then
+       echo "Before you can use this script you have to edit classpathrc"
+       echo "so it contains all pathnames and .jar files that are neccessary"
+       echo "to build the docs. You'll see the warnings if some files are missing."
+fi
+
+
+OLDU=$(umask)
+umask 022
+
+BASEDIR=$(pwd)
+SOURCES=$(find $BASEDIR/../source -name \*.java)
+PACKAGES=$(. classpath.sh $BASEDIR/../../Mir/WEB-INF/lib/*.jar)
+LINK=/usr/share/doc/libservlet2.2-java/api
+
+#echo $BASEDIR
+#echo $SOURCES
+#echo $PACKAGES
+
+javadoc -link $LINK -sourcepath $PACKAGES -d /pub/Dokumente/Indymedia/de-tech/Mir/javadoc/ $SOURCES
+
+umask $OLDU
\ No newline at end of file