[Webfunds-commits] java init_java jd jd_env
Ian Grigg
iang@cypherpunks.ai
Wed, 5 Jul 2000 17:10:15 -0400 (AST)
iang 00/07/05 17:10:14
Modified: . init_java jd jd_env
Log:
got javadoc working, type ./jd to make it in ../lib
Revision Changes Path
1.4 +1 -0 java/init_java
Index: init_java
===================================================================
RCS file: /home/webfunds/cvsroot/java/init_java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- init_java 2000/05/16 11:27:34 1.3
+++ init_java 2000/07/05 21:10:14 1.4
@@ -44,6 +44,7 @@
export JVM=${j}/bin/java # the runner
export JAR="limits -s 32768 ${j}/bin/jar" # archiver
export JC=${j}/bin/javac # the compiler
+ export JD=${j}/bin/javadoc # make doco
SUNCLASSES=${j}/lib/classes.zip # for Jikes
break
fi
1.2 +2 -2 java/jd
Index: jd
===================================================================
RCS file: /home/webfunds/cvsroot/java/jd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- jd 1999/12/29 03:52:55 1.1
+++ jd 2000/07/05 21:10:14 1.2
@@ -1,6 +1,6 @@
-export archive=../lib/javadoc.zip
-export images=~/src/jdimages.zip
+export archive=$PWD/../lib/javadoc.zip
+export images=$PWD/../lib/jdimages.zip
if [ $# = 0 ]
then
1.2 +10 -9 java/jd_env
Index: jd_env
===================================================================
RCS file: /home/webfunds/cvsroot/java/jd_env,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- jd_env 1999/12/29 03:52:55 1.1
+++ jd_env 2000/07/05 21:10:14 1.2
@@ -15,17 +15,19 @@
#
#
-
# check the rm command at bottom
top=/tmp/jaberwocky$$
result=/tmp/wockyjaber$$
+ls -ld /tmp/*jaber*
mkdir -p ${top} ${result}
-case "${archive:-"/tmp/javadoc.zip"}" in # make absolute
+: ${archive:="/tmp/javadoc.zip"}
+case "${archive}" in # make absolute
/*) ;;
*) archive=${PWD}/${archive} ;;
esac
+
for dir in ${list:?set me}
do
# convert the dot-form of directory to a slash-form, for populating
@@ -41,18 +43,17 @@
cd ${top}
-#packages=$(find * -type d -print | sed -e 's,/,.,g')
-# set -x # this will tell you what is going on...
-
packages=$(echo ${list} | sed -e 's,/,.,g')
-${JD:-javadoc} -d ${result} ${packages}
+${JD:-javadoc} -J"-mx128m" -d ${result} ${packages}
cd ${result}
+
[ -r "${images}" ] && unzip ${images}
-mv -f ${archive:="/tmp/javadoc.zip"} ${archive}.old
+mv -f ${archive} ${archive}OLD
# for some reason, "." causes zip to add another wierd directory...
-zip -9r ${archive:-"/tmp/javadoc.zip"} *
+zip -9r ${archive} *
+set -x
# be careful
-rm -rf ${result} ${top}
+# rm -rf ${result} ${top} 2>&-