source: main/tags/2.53/gli/document.bat@ 32727

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

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

  • Property svn:keywords set to Author Date Id Revision
File size: 5.0 KB
Line 
1@echo off
2set GLILANG=en
3
4
5:: -------- Generate documentation for the Greenstone Librarian Interface --------
6
7:: This script must be run from within the directory in which it lives
8if exist document.bat goto findJavadoc
9 if "%GLILANG%" == "en" echo This script must be run from the directory in which it resides.
10 if "%GLILANG%" == "es" echo Este gui¢n deber  ejecutarse desde el directorio en el que reside.
11 if "%GLILANG%" == "fr" echo Ce script doit ˆtre ex‚cut‚ …
12 partir du r‚pertoire dans lequel il se trouve.
13 if "%GLILANG%" == "ru" echo â®â áªàš¯â €®«Š¥­ ¡ëâì ¢§ïâ š§ €šà¥ªâ®àšš, ¢ ª®â®à®© ®­ à á¯®«®Š¥­
14 goto exit
15
16
17:findJavadoc
18:: ---- Check Javadoc exists ----
19set JAVADOCPATH=
20
21:: Some users may set the above line manually
22if not "%JAVADOCPATH%" == "" goto testJavadoc
23
24 :: If it is set, use the JAVA_HOME environment variable
25 if not "%JAVA_HOME%" == "" goto javahome
26
27 :: Check if Javadoc is on the search path
28 echo %PATH%| winutil\which javadoc.exe | winutil\setvar JAVADOCPATH > setjavadoc.bat
29 call setjavadoc.bat
30 del setjavadoc.bat
31 if not "%JAVADOCPATH%" == "" goto testJavadoc
32
33 :: Still haven't found anything, so try looking in the registry (gulp!)
34 type nul > jdk.reg
35 regedit /E jdk.reg "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit"
36 type jdk.reg > jdk.txt
37 del jdk.reg
38
39 winutil\findjava jdk.txt | winutil\setvar JAVADOCPATH > setjavadoc.bat
40 del jdk.txt
41 call setjavadoc.bat
42 del setjavadoc.bat
43
44 :: If nothing was found in the registry, we're stuck
45 if "%JAVADOCPATH%" == "" goto noJavadoc
46
47 set JAVADOCPATH=%JAVADOCPATH%\bin
48 goto testJavadoc
49
50:javahome
51 set JAVADOCPATH=%JAVA_HOME%\bin
52
53:testJavadoc
54:: Check that a Javadoc executable has been found
55if "%GLILANG%" == "en" echo Checking Javadoc: %JAVADOCPATH%
56if "%GLILANG%" == "es" echo Revisando Javadoc: %JAVADOCPATH%
57if "%GLILANG%" == "fr" echo V‚rification de Javadoc: %JAVADOCPATH%
58if "%GLILANG%" == "ru" echo à®¢¥àª  Javadoc: %JAVADOCPATH%
59if exist "%JAVADOCPATH%\javadoc.exe" goto docGLI
60
61:noJavadoc
62 echo.
63 if "%GLILANG%" == "en" echo Failed to locate an appropriate version of Javadoc. You must install a
64 if "%GLILANG%" == "en" echo Java Development Kit (version 1.4 or greater) before generating the
65 if "%GLILANG%" == "en" echo documentation for the Greenstone Librarian Interface.
66
67 if "%GLILANG%" == "es" echo No se pudo localizar una versi¢n apropiada de Javadoc. Usted deber 
68 if "%GLILANG%" == "es" echo instalar un Kit de Desarrollo de Software Java (versi¢n 1.4 o superior)
69 if "%GLILANG%" == "es" echo antes de generar la documentaci¢n para la Interfaz de la Biblioteca
70 if "%GLILANG%" == "es" echo Digital Greenstone.
71
72 if "%GLILANG%" == "fr" echo Une version appropri‚e de Javadoc n'a pas pu ˆtre localis‚e. Vous devez
73 if "%GLILANG%" == "fr" echo installer un Kit de D‚veloppement Java (version 1.4 ou sup‚rieure) avant
74 if "%GLILANG%" == "fr" echo de produire la documentation de Greenstone Librarian Interface.
75
76 if "%GLILANG%" == "ru" echo ¥ 〠«®áì ®¯à¥€¥«šâì ¬¥áâ®­ å®Š€¥­š¥ ᮮ⢥âáâ¢ãî饩 ¢¥àášš Javadoc.
77 if "%GLILANG%" == "ru" echo ‚ë €®«Š­ë š­áâ ««šà®¢ âì Java Development Kit (¢¥àášï 1.4 š«š ¢ëè¥)
78 if "%GLILANG%" == "ru" echo ¯à¥Š€¥, 祬 £¥­¥àšà®¢ âì €®ªã¬¥­â æšî €«ï ¡š¡«š®â¥ç­®£®
79 if "%GLILANG%" == "ru" echo š­â¥àä¥©á  Greenstone.
80 goto exit
81
82
83:docGLI
84:: ---- Document the GLI ----
85echo.
86if "%GLILANG%" == "en" echo Generating documentation for the Greenstone Librarian Interface...
87if "%GLILANG%" == "es" echo Generando documentaci¢n para la Interfaz de la Biblioteca Digital Greenstone...
88if "%GLILANG%" == "fr" echo Production de documentation pour la Greenstone Librarian Interface
89if "%GLILANG%" == "ru" echo ƒ¥­¥àšà®¢ ­š¥ €®ªã¬¥­â æšš €«ï ¡š¡«š®â¥ç­®£® š­â¥àä¥©á  Greenstone
90
91"%JAVADOCPATH%\javadoc.exe" -classpath classes/ -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
92
93if "%GLILANG%" == "en" echo Done!
94if "%GLILANG%" == "es" echo ­Hecho!
95if "%GLILANG%" == "fr" echo Termin‚!
96if "%GLILANG%" == "ru" echo ‚믮«­¥­®!
97
98:exit
99echo.
100pause
101
102:: ---- Clean up ----
103set JAVADOCPATH=
Note: See TracBrowser for help on using the repository browser.