Skip to content

Commit 937edbe

Browse files
committed
Added recursive build script
1 parent 29df4d5 commit 937edbe

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@echo off
2+
rem ------------------------------------------------------------------------------
3+
rem build_recursively.bat
4+
rem Konstantin Pavlov, pavlovconst@gmail.com
5+
rem ------------------------------------------------------------------------------
6+
7+
rem Use this script to walk through all subdirs and execute build scripts
8+
rem there. Place build script in every subdir that requires build
9+
10+
11+
echo INFO: =====================================================================
12+
echo INFO: build_recursively.bat
13+
echo INFO: The script may sometimes take a long time to complete
14+
for /R %%f in (*) do (
15+
echo %%f | findstr /C:".git" >nul & if ERRORLEVEL 1 (
16+
17+
echo %%f | findstr /C:"b\.bat" >nul & if ERRORLEVEL 1 (
18+
rem
19+
) else (
20+
pushd %%~df%%~pf
21+
echo %%~df%%~pf
22+
@echo | call %%f f
23+
popd
24+
)
25+
26+
)
27+
)
28+
29+
pause
30+
goto :eof
31+

0 commit comments

Comments
 (0)