-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean.bat
More file actions
55 lines (48 loc) · 970 Bytes
/
Copy pathclean.bat
File metadata and controls
55 lines (48 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
setlocal enabledelayedexpansion
set FAILED=0
cd /d "%~dp0"
echo Cleaning extension build artifacts...
if exist build (
rmdir /s /q build
if exist build (
echo [fail] build\ is locked or not deleted
set FAILED=1
) else (
echo [ok] build\
)
)
if exist dist (
rmdir /s /q dist
if exist dist (
echo [fail] dist\ is locked or not deleted
set FAILED=1
) else (
echo [ok] dist\
)
)
if exist log.1main.log (
del /q log.1main.log
if exist log.1main.log (
echo [fail] log.1main.log not deleted
set FAILED=1
) else (
echo [ok] log.1main.log
)
)
if exist log.1err.log (
del /q log.1err.log
if exist log.1err.log (
echo [fail] log.1err.log not deleted
set FAILED=1
) else (
echo [ok] log.1err.log
)
)
del /q "*.vsix" 2>nul
if "!FAILED!"=="0" (
echo Done.
) else (
echo Clean finished with errors.
exit /b 1
)