diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-01 16:14:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-01 16:14:20 +0200 |
commit | 6005adc00b2a924922b17cf801eb7c713c520d87 (patch) | |
tree | 7bd51ebd97f26e44c4479a1d59b9eea8d463f7cb /test/windows/odb/all | |
parent | 4c13c40aefbd7eb73586a75bd421a8b76661c8d4 (diff) |
Add support for building only certain configurations/platforms on Windows
Diffstat (limited to 'test/windows/odb/all')
-rwxr-xr-x | test/windows/odb/all | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/test/windows/odb/all b/test/windows/odb/all index cef5a67..8eddb09 100755 --- a/test/windows/odb/all +++ b/test/windows/odb/all @@ -7,12 +7,33 @@ function error () echo "$*" 1>&2 } +function usage () +{ + error "usage: $0 vc-version conf plat [action]" + error " valid configurations are: {Debug,Release}|all" + error " valid platforms are: {Win32,x64}|all" + error " valid actions are: /Build (default), /Clean, and /Rebuild" +} + if [ "$1" = "" ]; then - echo vc++ version expected + error vc version expected + usage + exit 1 +fi + +if [ "$2" = "" ]; then + error configuration expected + usage exit 1 fi -action=$2 +if [ "$3" = "" ]; then + error platform expected + usage + exit 1 +fi + +action=$4 if [ "$action" == "" ]; then action=/Build fi @@ -20,12 +41,11 @@ fi databases="mysql" for d in $databases; do - cmd.exe /C "setenv.bat build.bat $d $1 $action" + cmd.exe /C setenv.bat build.bat "$d" "$1" "$2" "$3" "$action" cd odb-tests - cmd.exe /C "..\setenv.bat test.bat $d" + cmd.exe /C ..\setenv.bat test.bat "$d" cd .. cd odb-examples - cmd.exe /C "..\setenv.bat test.bat $d" + cmd.exe /C ..\setenv.bat test.bat "$d" cd .. done - |