root/trunk/gli/clean.bat @ 10448

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