Skip to content

Commit a6cf1ea

Browse files
committed
Refactor cleanup script to improve file removal process and enhance documentation cleanup
1 parent 01c12cd commit a6cf1ea

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/clean_up.bat

+11-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ del /s /q *.orig 1>nul 2>&1
3232

3333
@REM Removing localization template files
3434
if exist doc\locale\pot ( rmdir /s /q doc\locale\pot )
35+
del /s /q %MODNAME%\locale\%MODNAME%.pot 1>nul 2>&1
36+
37+
@REM Removing files related to documentation generation
38+
del /q doc/contributing/changelog.md 1>nul 2>&1
39+
40+
@REM Removing generated PDF documentation files
41+
del /q %MODNAME%\data\doc\%LIBNAME%*.pdf 1>nul 2>&1
42+
43+
@REM Log files
44+
del /s /q *.log 1>nul 2>&1
3545

3646
@REM Removing files/directories related to Coverage and pytest
3747
if exist .coverage ( del /q .coverage )
@@ -46,4 +56,4 @@ if exist wix\bin ( rmdir /s /q wix\bin )
4656
if exist wix\obj ( rmdir /s /q wix\obj )
4757
if exist wix\*.bmp ( del /q wix\*.bmp )
4858
if exist wix\*.wixpdb ( del /q wix\*.wixpdb )
49-
if exist wix\%LIBNAME%.wxs ( del /q wix\%LIBNAME%.wxs )
59+
del /q wix\%LIBNAME%*.wxs 1>nul 2>&1

0 commit comments

Comments
 (0)