root/gli/trunk/clean.bat @ 14129

Revision 10448, 1.8 KB (checked in by kjdon, 15 years ago)

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

  • Property svn:keywords set to Author Date Id Revision
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‚ … partir du r‚pertoire dans lequel il se trouve.
12    if "%GLILANG%" == "ru" echo â®â áªàš¯â €®«Š¥­ ¡ëâì ¢§ïâ š§ €šà¥ªâ®àšš, ¢ ª®â®à®© ®­ à á¯®«®Š¥­
13    goto exit
14
15
16:cleanGLI
17:: ---- Remove class files ----
18echo.
19if "%GLILANG%" == "en" echo Removing the Greenstone Librarian Interface class files...
20if "%GLILANG%" == "es" echo Eliminando los archivos de clase de la Interfaz de la Biblioteca Digital Greenstone...
21if "%GLILANG%" == "fr" echo Suppression des fichiers de classe de Greenstone Librarian Interface
22if "%GLILANG%" == "ru" echo “€ «¥­š¥ ä ©«®¢ ª« áá  ¡š¡«š®â¥ç­®£® š­â¥àä¥©á  Greenstone
23
24if not exist classes\org\greenstone\gatherer goto done
25
26cd classes\org\greenstone\gatherer
27if exist "*.class" del "*.class"
28if exist "cdm\*.class" del "cdm\*.class"
29if exist "collection\*.class" del "collection\*.class"
30if exist "feedback\*.class" del "feedback\*.class"
31if exist "file\*.class" del "file\*.class"
32if exist "gems\*.class" del "gems\*.class"
33if exist "gui\*.class" del "gui\*.class"
34if exist "metadata\*.class" del "metadata\*.class"
35if exist "shell\*.class" del "shell\*.class"
36if exist "util\*.class" del "util\*.class"
37cd ..\..\..\..
38
39:done
40if "%GLILANG%" == "en" echo Done!
41if "%GLILANG%" == "es" echo ­Hecho!
42if "%GLILANG%" == "fr" echo Termin‚!
43if "%GLILANG%" == "ru" echo ‚믮«­¥­®!
44
45:exit
46echo.
Note: See TracBrowser for help on using the browser.