]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - clean_and_jerk.bat
PASDK-419:Update 3p-ip-dts submodule
[processor-sdk/performance-audio-sr.git] / clean_and_jerk.bat
index 919443351f72473bbd3a159119e503ccd1400cf6..8333624541c5782a960c14b8ee45a09a2ad9c709 100644 (file)
@@ -1,3 +1,26 @@
+@echo off
+
+:: %1: Build type: DH or DTSX
+@echo Executing:  %~fn0 %1
+
+:: *************************************************************************
+:: *** Check command line input
+:: *************************************************************************
+if "%1"=="" goto use_err1
+goto cont1
+
+:use_err1
+:: USAGE ERROR
+echo ERROR: Supplied options are invalid.
+echo .
+echo . Usage: %0 ^<buildType^>
+echo .
+echo .     buildType        : DH or DTSX
+echo .
+goto end
+
+
+:cont1
 set PATH_ORG=%path%
 set path=c:\cygwin\bin;%path%
 
 set PATH_ORG=%path%
 set path=c:\cygwin\bin;%path%
 
@@ -9,8 +32,11 @@ git submodule foreach "git ls-files -m | xargs git checkout --"
 
 git branch -vv > repos_before_build.txt && git submodule foreach git branch -vv >> repos_before_build.txt
 
 
 git branch -vv > repos_before_build.txt && git submodule foreach git branch -vv >> repos_before_build.txt
 
-call build_all.bat SuperRepo Debug > build_all_log.txt 2>&1
+call build_all.bat %1 SuperRepo Debug > build_all_log.txt 2>&1
 
 git branch -vv > repos_after_build.txt && git submodule foreach git branch -vv >> repos_after_build.txt
 
 set path=%PATH_ORG%
 
 git branch -vv > repos_after_build.txt && git submodule foreach git branch -vv >> repos_after_build.txt
 
 set path=%PATH_ORG%
+
+
+:end