+#!/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