From 42c3ac6e5509019a7cd0244f35510fcfa6abf5d0 Mon Sep 17 00:00:00 2001
From: Pierre Raybaut
Date: Wed, 15 Nov 2023 15:15:48 +0100
Subject: [PATCH] Upgraded clean_up.bat
---
scripts/clean_up.bat | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/scripts/clean_up.bat b/scripts/clean_up.bat
index 5dec2b9..b6e2936 100644
--- a/scripts/clean_up.bat
+++ b/scripts/clean_up.bat
@@ -9,21 +9,17 @@ REM (see PythonQwt LICENSE file for more details)
REM ======================================================
call %~dp0utils GetScriptPath SCRIPTPATH
call %FUNC% GetLibName LIBNAME
+call %FUNC% GetModName MODNAME
cd %SCRIPTPATH%\..\
@REM Removing files/directories related to Python/doc build process
if exist %LIBNAME%.egg-info ( rmdir /s /q %LIBNAME%.egg-info )
-if exist %LIBNAME%\%LIBNAME%.chm ( del /q %LIBNAME%\%LIBNAME%.chm )
+if exist %MODNAME%.egg-info ( rmdir /s /q %MODNAME%.egg-info )
if exist MANIFEST ( del /q MANIFEST )
if exist build ( rmdir /s /q build )
if exist dist ( rmdir /s /q dist )
if exist doc\_build ( rmdir /s /q doc\_build )
-@REM Removing files produced by tests
-del *.h5
-del *.json
-del *.pickle
-
@REM Removing cache files/directories related to Python execution
del /s /q *.pyc 1>nul 2>&1
del /s /q *.pyo 1>nul 2>&1
@@ -40,4 +36,4 @@ if exist .coverage ( del /q .coverage )
if exist coverage.xml ( del /q coverage.xml )
if exist htmlcov ( rmdir /s /q htmlcov )
del /q .coverage.* 1>nul 2>&1
-if exist sitecustomize.py ( del /q sitecustomize.py )
\ No newline at end of file
+if exist sitecustomize.py ( del /q sitecustomize.py )