diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-06-03 18:39:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-06-03 18:39:12 +0200 |
commit | bf2cfa77a1003319b4c0b768f724d1481ec866aa (patch) | |
tree | 7a03926ddd11f3c4d6e06f5bb3f7075cb6305227 /test/windows/setenv.bat | |
parent | 829051104d5544c56b49ebfa181b092cc5e698f3 (diff) |
Remove unnecessary sub-directory
Diffstat (limited to 'test/windows/setenv.bat')
-rw-r--r-- | test/windows/setenv.bat | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/windows/setenv.bat b/test/windows/setenv.bat new file mode 100644 index 0000000..600c29d --- /dev/null +++ b/test/windows/setenv.bat @@ -0,0 +1,43 @@ +@echo off + +if "_%1_" == "__" ( + echo no VC++ version specified + goto usage +) + +rem set CL=/DMSSQL_SERVER_VERSION=900 + +set ODB=c:\projects\odb +set MYSQL=c:\projects\mysql +set MYSQL64=c:\projects\mysql64 +set SQLITE=c:\projects\sqlite-vc%1.0 +set PGSQL=c:\projects\pgsql +set PGSQL64=c:\projects\pgsql64 +set ORACLE=c:\projects\oracle +set ORACLE64=c:\projects\oracle64 +set QTCORE=c:\projects\qtcore-vc%1.0 +set QTCORE64=c:\projects\qtcore64-vc%1.0 +rem set "NLS_LANG=AMERICA_AMERICA.WE8MSWIN1252" +set "DIFF=c:\cygwin\bin\diff.exe -ubB" +if "_%1_" == "_8_" set "DEVENV=c:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\devenv.com" +if "_%1_" == "_9_" set "DEVENV=c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com" +if "_%1_" == "_10_" set "DEVENV=c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com" +if "_%1_" == "_11_" set "DEVENV=c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.com" +if "_%1_" == "_12_" set "DEVENV=c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com" +set PATH=%ODB%\libodb\bin;%ODB%\libodb-sqlite\bin;%ODB%\libodb-mysql\bin;%ODB%\libodb-pgsql\bin;%ODB%\libodb-oracle\bin;%ODB%\libodb-mssql\bin;%ODB%\libodb-boost\bin;%ODB%\libodb-qt\bin;%MYSQL%\bin;%SQLITE%\bin;%PGSQL%\bin;%ORACLE%;%QTCORE%\bin;%PATH% +set PATH=%ODB%\libodb\bin64;%ODB%\libodb-sqlite\bin64;%ODB%\libodb-mysql\bin64;%ODB%\libodb-pgsql\bin64;%ODB%\libodb-oracle\bin64;%ODB%\libodb-mssql\bin64;%ODB%\libodb-boost\bin64;%ODB%\libodb-qt\bin64;%MYSQL64%\bin;%SQLITE%\bin64;%PGSQL64%\bin;%ORACLE64%;%QTCORE64%\bin;%PATH% + +if "_%2_" == "__" goto end + +%2 %3 %4 %5 %6 %7 %8 %9 +goto end + +:usage +echo. +echo usage: setenv.bat vc-version ... +echo. + +:error +exit /b 1 + +:end |