Files

74 lines
1.9 KiB
Batchfile

@echo off
echo Effettua pulizia post build: configurazione %1. directory %2
RD /S /Q %2"\lib\da" >nul 2>&1
RD /S /Q %2"\lib\de" >nul 2>&1
RD /S /Q %2"\lib\es" >nul 2>&1
RD /S /Q %2"\lib\fr" >nul 2>&1
RD /S /Q %2"\lib\it" >nul 2>&1
RD /S /Q %2"\lib\ja-JP" >nul 2>&1
RD /S /Q %2"\lib\ko" >nul 2>&1
RD /S /Q %2"\lib\nl" >nul 2>&1
RD /S /Q %2"\lib\pl" >nul 2>&1
RD /S /Q %2"\lib\pt" >nul 2>&1
RD /S /Q %2"\lib\ru" >nul 2>&1
RD /S /Q %2"\lib\sv" >nul 2>&1
RD /S /Q %2"\lib\tr" >nul 2>&1
RD /S /Q %2"\lib\zh" >nul 2>&1
MOVE /Y %2"da" %2"lib\" >nul 2>&1
MOVE /Y %2"de" %2"lib\" >nul 2>&1
MOVE /Y %2"es" %2"lib\" >nul 2>&1
MOVE /Y %2"fr" %2"lib\" >nul 2>&1
MOVE /Y %2"it" %2"lib\" >nul 2>&1
MOVE /Y %2"ja-JP" %2"lib\" >nul 2>&1
MOVE /Y %2"ko" %2"lib\" >nul 2>&1
MOVE /Y %2"nl" %2"lib\" >nul 2>&1
MOVE /Y %2"pl" %2"lib\" >nul 2>&1
MOVE /Y %2"pt" %2"lib\" >nul 2>&1
MOVE /Y %2"ru" %2"lib\" >nul 2>&1
MOVE /Y %2"sv" %2"lib\" >nul 2>&1
MOVE /Y %2"tr" %2"lib\" >nul 2>&1
MOVE /Y %2"zh" %2"lib\" >nul 2>&1
if %1 == "Release" goto Release
if %1 == "Debug" goto Debug
REM if %1 == "FANUC" goto FANUC
REM if %1 == "SIEMENS" goto SIEMENS
:Release
REM INIZIO eliminando i files pdb
del /S %2"*.pdb""
del /S %2"lib/*.pdb""
echo Release: eliminato pdb!!!
goto END
:Debug
echo Debug: nulla da eliminare
goto END
REM :CMS
REM echo CMS: Elimino files IOT di SCM
REM REM INIZIO eliminando i files pdb
REM del /S %2"*.pdb""
REM del %2"DATA\CONF\IOT_ByteList.map"
REM del %2"DATA\CONF\IOT_WordList.map"
REM del %2"DATA\CONF\IOT_DWordList.map"
REM del %2"DATA\CONF\IOT_StringList.map"
REM del %2"DATA\CONF\EsaKvara.ini"
REM del /S %2"SCMEgwProxy.MultiCncLib.dll"
REM del /S %2"SCMEgwProxy.MultiCncLib.xml"
REM ora verifico tipo controllo esatto...
REM if %1 == "CMS-FANUC" goto FANUC
REM if %1 == "CMS-SIEMENS" goto SIEMENS
REM if %1 == "CMS-OSAI" goto OSAI
REM
REM :FANUC
REM goto END
REM
REM :SIEMENS
REM goto END
:END
echo Fatto!