]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - clean_and_jerk.bat
PASDK-432:Clean up DSP app.cfg file
[processor-sdk/performance-audio-sr.git] / clean_and_jerk.bat
1 @echo off
3 :: %1: Build type: DH or DTSX
4 @echo Executing:  %~fn0 %1
6 :: *************************************************************************
7 :: *** Check command line input
8 :: *************************************************************************
9 if "%1"=="" goto use_err1
10 goto cont1
12 :use_err1
13 :: USAGE ERROR
14 echo ERROR: Supplied options are invalid.
15 echo .
16 echo . Usage: %0 ^<buildType^>
17 echo .
18 echo .     buildType        : DH or DTSX
19 echo .
20 goto end
23 :cont1
24 set PATH_ORG=%path%
25 set path=c:\cygwin\bin;%path%
27 git clean -fdx --exclude=clean_and_jerk.bat
28 git submodule foreach git clean -fdx
30 git ls-files -m | xargs git checkout --
31 git submodule foreach "git ls-files -m | xargs git checkout --"
33 git branch -vv > repos_before_build.txt && git submodule foreach git branch -vv >> repos_before_build.txt
35 call build_all.bat %1 SuperRepo Debug > build_all_log.txt 2>&1
37 git branch -vv > repos_after_build.txt && git submodule foreach git branch -vv >> repos_after_build.txt
39 set path=%PATH_ORG%
42 :end