From fa610bc13f544a8e52ec006dd23e869bbdef186e Mon Sep 17 00:00:00 2001 From: gladman Date: Thu, 15 Jul 2010 21:00:06 +0000 Subject: [PATCH] minor tweak to batch file --- build.vc10/postbuild.bat | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/build.vc10/postbuild.bat b/build.vc10/postbuild.bat index e6e96ed8..40ef8fc7 100644 --- a/build.vc10/postbuild.bat +++ b/build.vc10/postbuild.bat @@ -15,16 +15,18 @@ if not exist %odir% md %odir% call :copyh %tdir% %odir% if "%extn%" EQU "dll" ( -copy %tdir%\mpir.dll %odir%\mpir.dll -copy %tdir%\mpir.exp %odir%\mpir.exp -copy %tdir%\mpir.lib %odir%\mpir.lib -copy %tdir%\mpir.pdb %odir%\mpir.pdb -copy ..\mpir-tests\dll-test-config.props ..\mpir-tests\test-config.props + copy %tdir%\mpir.dll %odir%\mpir.dll + copy %tdir%\mpir.exp %odir%\mpir.exp + copy %tdir%\mpir.lib %odir%\mpir.lib + copy %tdir%\mpir.pdb %odir%\mpir.pdb + copy ..\mpir-tests\dll-test-config.props ..\mpir-tests\test-config.props ) else if "%extn%" EQU "lib" ( -copy %tdir%\mpir.lib %odir%\mpir.lib -copy %tdir%\mpir.pdb %odir%\mpir.pdb -copy ..\mpir-tests\lib-test-config.props ..\mpir-tests\test-config.props -) else (call :seterr & echo ERROR: illegal library type %extn% & exit /b %errorlevel%) + copy %tdir%\mpir.lib %odir%\mpir.lib + copy %tdir%\mpir.pdb %odir%\mpir.pdb + copy ..\mpir-tests\lib-test-config.props ..\mpir-tests\test-config.props +) else ( + call :seterr & echo ERROR: illegal library type %extn% & exit /b %errorlevel% +) exit /b 0 :copyh @@ -36,7 +38,7 @@ if exist %1\mpirxx.h (copy %1\mpirxx.h %2\mpirxx.h & copy %1\mpirxx.h %2\gmpxx.h exit /b 0 :parse -for /f "tokens=1,2,3,4,5,6,7,8,9,10,11,12 delims=\" %%a in (%1) do ( +for /f "tokens=1-12 delims=\" %%a in (%1) do ( if "%%a" EQU "build.vc10" ((set plf=%%b) & (set cnf=%%c) & (set fnx=%%d)) if "%%b" EQU "build.vc10" ((set plf=%%c) & (set cnf=%%d) & (set fnx=%%e)) if "%%c" EQU "build.vc10" ((set plf=%%d) & (set cnf=%%e) & (set fnx=%%f))