forked from nagadomi/distro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean.bat
24 lines (17 loc) · 899 Bytes
/
clean.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@setlocal enableextensions
@echo off
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::: This script cleans temporary compilation file ::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
set TORCH_DISTRO=%~dp0.
for /d %%G in ("%TORCH_DISTRO%\win-files\3rd\wineditline-*") do rmdir /s /q "%%~G"\build
cd %TORCH_DISTRO%\win-files\3rd\dlfcn-win32 && git clean -fdx
cd %TORCH_DISTRO%\exe\lua-5.1.5 && del /q *.obj *.o *.lib *.dll *.exp *.exe
cd %TORCH_DISTRO%\exe\lua-5.2.4 && del /q *.obj *.o *.lib *.dll *.exp *.exe
cd %TORCH_DISTRO%\exe\lua-5.3.3 && del /q *.obj *.o *.lib *.dll *.exp *.exe
cd %TORCH_DISTRO%\exe\luajit-2.0 && git clean -fdx
cd %TORCH_DISTRO%\exe\luajit-2.1 && git clean -fdx
cd %TORCH_DISTRO%\exe\luarocks && git clean -fdx
cd %TORCH_DISTRO% && git submodule foreach --recursive git clean -fdx
echo Cleaning is finished
@endlocal