[5824] | 1 | @echo off
|
---|
[6747] | 2 | set GLILANG=en
|
---|
[5824] | 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
|
---|
| 8 | if exist document.bat goto findJavadoc
|
---|
[6747] | 9 | if "%GLILANG%" == "en" echo This script must be run from the directory in which it resides.
|
---|
[6753] | 10 | if "%GLILANG%" == "es" echo Este gui¢n deber ejecutarse desde el directorio en el que reside.
|
---|
[6747] | 11 | if "%GLILANG%" == "fr" echo Ce script doit tre excut
|
---|
[6754] | 12 | partir du rpertoire dans lequel il se trouve.
|
---|
[5824] | 13 | if "%GLILANG%" == "ru" echo â®â áªàš¯â €®«Š¥ ¡ëâì ¢§ïâ š§ €šà¥ªâ®àšš, ¢ ª®â®à®© ® à ᯮ«®Š¥
|
---|
| 14 | goto exit
|
---|
| 15 |
|
---|
| 16 |
|
---|
| 17 | :findJavadoc
|
---|
| 18 | :: ---- Check Javadoc exists ----
|
---|
| 19 | set JAVADOCPATH=
|
---|
| 20 |
|
---|
| 21 | :: Some users may set the above line manually
|
---|
| 22 | if not "%JAVADOCPATH%" == "" goto testJavadoc
|
---|
[6467] | 23 |
|
---|
| 24 | :: If it is set, use the JAVA_HOME environment variable
|
---|
[5824] | 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 |
|
---|
[6467] | 50 | :javahome
|
---|
[5824] | 51 | set JAVADOCPATH=%JAVA_HOME%\bin
|
---|
| 52 |
|
---|
| 53 | :testJavadoc
|
---|
[6747] | 54 | :: Check that a Javadoc executable has been found
|
---|
[6753] | 55 | if "%GLILANG%" == "en" echo Checking Javadoc: %JAVADOCPATH%
|
---|
[6747] | 56 | if "%GLILANG%" == "es" echo Revisando Javadoc: %JAVADOCPATH%
|
---|
[6754] | 57 | if "%GLILANG%" == "fr" echo Vrification de Javadoc: %JAVADOCPATH%
|
---|
[5824] | 58 | if "%GLILANG%" == "ru" echo ஢¥àª Javadoc: %JAVADOCPATH%
|
---|
| 59 | if exist "%JAVADOCPATH%\javadoc.exe" goto docGLI
|
---|
| 60 |
|
---|
| 61 | :noJavadoc
|
---|
[6747] | 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.
|
---|
[6753] | 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.
|
---|
[6747] | 71 |
|
---|
| 72 | if "%GLILANG%" == "fr" echo Une version approprie de Javadoc n'a pas pu tre localise. Vous devez
|
---|
| 73 | if "%GLILANG%" == "fr" echo installer un Kit de Dveloppement Java (version 1.4 ou suprieure) avant
|
---|
[6754] | 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 ¯à¥Š€¥, 祬 £¥¥àšà®¢ âì €®ªã¬¥â æšî €«ï ¡š¡«š®â¥ç®£®
|
---|
[5824] | 79 | if "%GLILANG%" == "ru" echo šâ¥à䥩á Greenstone.
|
---|
| 80 | goto exit
|
---|
| 81 |
|
---|
| 82 |
|
---|
| 83 | :docGLI
|
---|
| 84 | :: ---- Document the GLI ----
|
---|
[6747] | 85 | echo.
|
---|
[6753] | 86 | if "%GLILANG%" == "en" echo Generating documentation for the Greenstone Librarian Interface...
|
---|
[6747] | 87 | if "%GLILANG%" == "es" echo Generando documentaci¢n para la Interfaz de la Biblioteca Digital Greenstone...
|
---|
[6754] | 88 | if "%GLILANG%" == "fr" echo Production de documentation pour la Greenstone Librarian Interface
|
---|
[5824] | 89 | if "%GLILANG%" == "ru" echo ¥¥àšà®¢ š¥ €®ªã¬¥â æšš €«ï ¡š¡«š®â¥ç®£® šâ¥à䥩á Greenstone
|
---|
[9081] | 90 |
|
---|
[5824] | 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
|
---|
[6747] | 92 |
|
---|
[6753] | 93 | if "%GLILANG%" == "en" echo Done!
|
---|
[6747] | 94 | if "%GLILANG%" == "es" echo Hecho!
|
---|
[6754] | 95 | if "%GLILANG%" == "fr" echo Termin!
|
---|
[5824] | 96 | if "%GLILANG%" == "ru" echo 믮«¥®!
|
---|
| 97 |
|
---|
| 98 | :exit
|
---|
| 99 | echo.
|
---|
| 100 | pause
|
---|
| 101 |
|
---|
| 102 | :: ---- Clean up ----
|
---|
| 103 | set JAVADOCPATH=
|
---|