62 lines
1.3 KiB
Batchfile
62 lines
1.3 KiB
Batchfile
@echo off
|
|
echo Effettua pulizia post build: configurazione %1. directory %2
|
|
|
|
|
|
|
|
if %1 == "Release" goto Release
|
|
if %1 == "Debug" goto Debug
|
|
if %1 == "SCM-ESA" goto SCM
|
|
if %1 == "CMS-FANUC" goto CMS
|
|
if %1 == "CMS-OSAI" goto CMS
|
|
if %1 == "CMS-SIEMENS" goto CMS
|
|
|
|
:Release
|
|
REM INIZIO eliminando i files pdb
|
|
del /S %2"*.pdb""
|
|
echo Release: eliminato pdb!!!
|
|
goto END
|
|
|
|
:Debug
|
|
echo Debug: nulla da eliminare
|
|
goto END
|
|
|
|
:CMS
|
|
echo CMS: Elimino files IOT di SCM
|
|
REM INIZIO eliminando i files pdb
|
|
del /S %2"*.pdb""
|
|
del %2"DATA\CONF\IOT_ByteList.map"
|
|
del %2"DATA\CONF\IOT_WordList.map"
|
|
del %2"DATA\CONF\IOT_DWordList.map"
|
|
del %2"DATA\CONF\IOT_StringList.map"
|
|
del %2"DATA\CONF\EsaKvara.ini"
|
|
del /S %2"SCMCncLib.dll"
|
|
del /S %2"SCMCncLib.xml"
|
|
REM ora verifico tipo controllo esatto...
|
|
if %1 == "CMS-FANUC" goto FANUC
|
|
if %1 == "CMS-SIEMENS" goto SIEMENS
|
|
if %1 == "CMS-OSAI" goto OSAI
|
|
|
|
:SCM
|
|
echo SCM: Elimino files IOT di CMS
|
|
REM INIZIO eliminando i files pdb
|
|
del /S %2"*.pdb""
|
|
REM del %2"DATA\CONF\AnalogData.map"
|
|
REM del %2"DATA\CONF\CounterList.map"
|
|
REM del %2"DATA\CONF\HaltTypeList.map"
|
|
REM del %2"DATA\CONF\StatusList.map"
|
|
REM del %2"DATA\CONF\SubModeList.map"
|
|
REM del /S %2"CMSCncLib.dll"
|
|
REM del /S %2"CMSCncLib.xml"
|
|
goto END
|
|
|
|
:FANUC
|
|
goto END
|
|
|
|
:SIEMENS
|
|
goto END
|
|
|
|
:OSAI
|
|
goto END
|
|
|
|
:END
|
|
echo Fatto! |