source: trunk/gli/clean.bat@ 10448

Last change on this file since 10448 was 10448, checked in by kjdon, 16 years ago

test the existence of classes/org/... before trying to delete it

  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1@echo off
2set GLILANG=en
3
4
5:: -------- Clean up the Greenstone Librarian Interface directory --------
6
7:: This script must be run from within the directory in which it lives
8if exist clean.bat goto cleanGLI
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:cleanGLI
18:: ---- Remove class files ----
19echo.
20if "%GLILANG%" == "en" echo Removing the Greenstone Librarian Interface class files...
21if "%GLILANG%" == "es" echo Eliminando los archivos de clase de la Interfaz de la Biblioteca Digital Greenstone...
22if "%GLILANG%" == "fr" echo Suppression des fichiers de classe de Greenstone Librarian Interface
23if "%GLILANG%" == "ru" echo “€ «¥­š¥ ä ©«®¢ ª« áá  ¡š¡«š®â¥ç­®£® š­â¥àä¥©á  Greenstone
24
25if not exist classes\org\greenstone\gatherer goto done
26
27cd classes\org\greenstone\gatherer
28if exist "*.class" del "*.class"
29if exist "cdm\*.class" del "cdm\*.class"
30if exist "collection\*.class" del "collection\*.class"
31if exist "feedback\*.class" del "feedback\*.class"
32if exist "file\*.class" del "file\*.class"
33if exist "gems\*.class" del "gems\*.class"
34if exist "gui\*.class" del "gui\*.class"
35if exist "metadata\*.class" del "metadata\*.class"
36if exist "shell\*.class" del "shell\*.class"
37if exist "util\*.class" del "util\*.class"
38cd ..\..\..\..
39
40:done
41if "%GLILANG%" == "en" echo Done!
42if "%GLILANG%" == "es" echo ­Hecho!
43if "%GLILANG%" == "fr" echo Termin‚!
44if "%GLILANG%" == "ru" echo ‚믮«­¥­®!
45
46:exit
47echo.
Note: See TracBrowser for help on using the repository browser.