source: trunk/gli/document.sh@ 9081

Last change on this file since 9081 was 9081, checked in by mdewsnip, 19 years ago

Updated scripts as a consequence of removing the gui/border directory.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
1#!/bin/sh
2glilang=en
3
4
5## -------- Generate documentation for the Greenstone Librarian Interface --------
6
7## ---- Check Javadoc exists ----
8javadocpath=
9
10# Some users may set the above line manually
11if [ "$javadocpath" == "" ]; then
12
13 # If it is set, use the JAVA_HOME environment variable
14 if [ "$JAVA_HOME" != "" ]; then
15 javadocpath="$JAVA_HOME/bin/javadoc"
16
17 # Check if Javadoc is on the search path
18 else
19 javadocpath=`which javadoc 2> /dev/null`
20 fi
21fi
22
23# Check that a Javadoc executable has been found
24if [ "$glilang" == "es" ]; then
25 echo "Revisando Javadoc: $javadocpath"
26elif [ "$glilang" == "fr" ]; then
27 echo "Vérification de Javadoc: $javadocpath"
28elif [ "$glilang" == "ru" ]; then
29 echo "ðÒÏ×ÅÒËÁ Javadoc: $javadocpath"
30else
31 echo "Checking Javadoc: $javadocpath"
32fi
33if [ ! -x "$javadocpath" ]; then
34 echo
35 if [ "$glilang" == "es" ]; then
36 echo "No se pudo localizar una versión apropiada de Javadoc. Usted deberá "
37 echo "instalar un Kit de Desarrollo de Software Java (versión 1.4 o "
38 echo "superior) antes de generar la documentación para la Interfaz de la "
39 echo "Biblioteca Digital Greenstone."
40 elif [ "$glilang" == "fr" ]; then
41 echo "Une version appropriée de Javadoc n'a pas pu être localisée."
42 echo "Vous devez installer un Kit de Développement Java (version 1.4 ou"
43 echo "supérieure) avant de produire la documentation de Greenstone"
44 echo "Librarian Interface."
45 elif [ "$glilang" == "ru" ]; then
46 echo "îÅ ÕÄÁÌÏÓØ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÎÁÈÏÖÄÅÎÉÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ×ÅÒÓÉÉ Javadoc."
47 echo "÷Ù ÄÏÌÖÎÙ ÉÎÓÔÁÌÌÉÒÏ×ÁÔØ Java Development Kit (×ÅÒÓÉÑ 1.4 ÉÌÉ ×ÙÛÅ) "
48 echo "ÐÒÅÖÄÅ, ÞÅÍ ÇÅÎÅÒÉÒÏ×ÁÔØ ÄÏËÕÍÅÎÔÁÃÉÀ ÄÌÑ ÂÉÂÌÉÏÔÅÞÎÏÇÏ "
49 echo "ÉÎÔÅÒÆÅÊÓÁ Greenstone."
50 else
51 echo "Failed to locate an appropriate version of Javadoc. You must install a"
52 echo "Java Development Kit (version 1.4 or greater) before generating the"
53 echo "documentation for the Greenstone Librarian Interface."
54 fi
55 exit 1
56fi
57
58
59## ---- Document the GLI ----
60echo
61if [ "$glilang" == "es" ]; then
62 echo "Generando documentación para la Interfaz de la Biblioteca Digital"
63 echo "Greenstone..."
64elif [ "$glilang" == "fr" ]; then
65 echo "Production de documentation pour la Greenstone Librarian Interface"
66elif [ "$glilang" == "ru" ]; then
67 echo "çÅÎÅÒÉÒÏ×ÁÎÉÅ ÄÏËÕÍÅÎÔÁÃÉÉ ÄÌÑ ÂÉÂÌÉÏÔÅÞÎÏÇÏ ÉÎÔÅÒÆÅÊÓÁ Greenstone"
68else
69 echo "Generating documentation for the Greenstone Librarian Interface..."
70fi
71
72javadoc -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar -sourcepath src/ -source 1.4 -author -breakiterator -d docs/ -group "Greenstone Librarian Interface" org.greenstone.gatherer:org.greenstone.gatherer.cdm:org.greenstone.gatherer.collection:org.greenstone.gatherer.feedback:org.greenstone.gatherer.file:org.greenstone.gatherer.gems:org.greenstone.gatherer.gui:org.greenstone.gatherer.gui.metaaudit:org.greenstone.gatherer.gui.tree:org.greenstone.gatherer.metadata:org.greenstone.gatherer.shell:org.greenstone.gatherer.util -private -splitindex -version org.greenstone.gatherer org.greenstone.gatherer.cdm org.greenstone.gatherer.collection org.greenstone.gatherer.feedback org.greenstone.gatherer.file org.greenstone.gatherer.gems org.greenstone.gatherer.gui org.greenstone.gatherer.gui.metaaudit org.greenstone.gatherer.gui.tree org.greenstone.gatherer.metadata org.greenstone.gatherer.shell org.greenstone.gatherer.util
73
74if [ "$glilang" == "es" ]; then
75 echo "¡Hecho!"
76elif [ "$glilang" == "fr" ]; then
77 echo "Terminé!"
78elif [ "$glilang" == "ru" ]; then
79 echo "÷ÙÐÏÌÎÅÎÏ!"
80else
81 echo "Done!"
82fi
Note: See TracBrowser for help on using the repository browser.