@ECHO OFF
REM LINUX DOTNET COMPILE (GTK) 
IF NOT "%I_VER%"=="" GOTO SKIP 
CALL C_BEGIN.BAT 
CALL C_SOURCE.BAT CONT 
:SKIP
wsl sh C_COMPILE_G.SH %I_VER%  
PAUSE
GOTO FIN
CALL IROOT.BAT  CONT
CALL IMENU.BAT  CONT
CALL IPRINT.BAT  CONT
CALL ICHART.BAT  CONT
CALL ITIME.BAT  CONT
CALL ISETUP.BAT CONT
CALL ISRVC.BAT  CONT
IF EXIST ..\%I_VER%_BIN\CLIENT_UD\*.pdb ERASE /Q ..\%I_VER%_BIN\CLIENT_UD\*.pdb >NUL
IF EXIST ..\%I_VER%_BIN\CLIENT_WD\*.pdb ERASE /Q ..\%I_VER%_BIN\CLIENT_WD\*.pdb >NUL
IF EXIST ..\%I_VER%_BIN\SERVER_UD\*.pdb ERASE /Q ..\%I_VER%_BIN\SERVER_UD\*.pdb >NUL
IF EXIST ..\%I_VER%_BIN\SERVER_WD\*.pdb ERASE /Q ..\%I_VER%_BIN\SERVER_WD\*.pdb >NUL
REM ERASE /Q SERVER --- CLIENT
FOR /R ..\%I_VER%_BIN\CLIENT_UD %%D IN (*) DO IF EXIST ..\%I_VER%_BIN\SERVER_UD\\%%~NXD ERASE /Q    ..\%I_VER%_BIN\SERVER_UD\\%%~NXD
FOR /R ..\%I_VER%_BIN\CLIENT_UD %%D IN (.) DO IF EXIST ..\%I_VER%_BIN\SERVER_UD\\%%~ND  RMDIR /Q /S ..\%I_VER%_BIN\SERVER_UD\\%%~ND
FOR /R ..\%I_VER%_BIN\CLIENT_WD %%D IN (*) DO IF EXIST ..\%I_VER%_BIN\SERVER_WD\\%%~NXD ERASE /Q    ..\%I_VER%_BIN\SERVER_WD\\%%~NXD
FOR /R ..\%I_VER%_BIN\CLIENT_WD %%D IN (.) DO IF EXIST ..\%I_VER%_BIN\SERVER_WD\\%%~ND  RMDIR /Q /S ..\%I_VER%_BIN\SERVER_WD\\%%~ND
:FIN