Skip to content

Commit a80efe1

Browse files
committed
Added more cleaning scripts
1 parent 39490ae commit a80efe1

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

scripts/clean_recursively.bat

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ rem ----------------------------------------------------------------------------
66

77
rem Use this script to walk through all subdirs and execute cleaning scripts
88
rem there. Place cleaning script in every sybdir that requires cleaning.
9-
rem Supported subdirectory cleaning scripts
9+
rem Cleaning script names supported
1010
rem - clean.bat (custom one)
11-
rem - clean_modelsim.bat (special script for modelsim testbench dirs)
1211
rem - clean_quartus.bat (special script for quartus project dirs)
12+
rem - clean_vivado.bat (special script for vivado project dirs)
13+
rem - clean_modelsim.bat (special script for modelsim testbench dirs)
1314

1415

1516
echo INFO: =====================================================================
@@ -36,6 +37,15 @@ for /R %%f in (*) do (
3637
popd
3738
)
3839

40+
echo %%f | findstr /C:"clean\_vivado\.bat" >nul & if ERRORLEVEL 1 (
41+
rem
42+
) else (
43+
pushd %%~df%%~pf
44+
echo %%~df%%~pf
45+
@echo | call %%f
46+
popd
47+
)
48+
3949
echo %%f | findstr /C:"clean\_modelsim\.bat" >nul & if ERRORLEVEL 1 (
4050
rem
4151
) else (

scripts/clean_vivado.bat

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
@echo off
2+
rem ------------------------------------------------------------------------------
3+
rem clean_vivado.bat
4+
rem Konstantin Pavlov, pavlovconst@gmail.com
5+
rem ------------------------------------------------------------------------------
6+
7+
rem Use this file as a boilerplate for your custom clean script
8+
rem for Vivado projects
9+
10+
11+
SET PROJ=test
12+
13+
del /s /f /q .\%PROJ%.cache\*
14+
rmdir /s /q .\%PROJ%.cache\
15+
16+
del /s /f /q .\%PROJ%.hw\*
17+
rmdir /s /q .\%PROJ%.hw\
18+
19+
rem del /s /f /q .\%PROJ%.runs\*
20+
rem rmdir /s /q .\%PROJ%.runs\
21+
22+
del /s /f /q .\%PROJ%.sim\*
23+
rmdir /s /q .\%PROJ%.sim\
24+
25+
del /s /f /q .\.Xil\*
26+
rmdir /s /q .\.Xil\
27+
28+
del /s /f /q .\*.jou
29+
del /s /f /q .\*.log
30+
31+
pause
32+
goto :eof
33+

0 commit comments

Comments
 (0)