From: <xr...@us...> - 2012-06-25 23:45:15
|
Revision: 1430 http://scstudio.svn.sourceforge.net/scstudio/?rev=1430&view=rev Author: xrehak Date: 2012-06-25 23:45:09 +0000 (Mon, 25 Jun 2012) Log Message: ----------- more user friendly make_build.bat Modified Paths: -------------- trunk/make_build.bat Modified: trunk/make_build.bat =================================================================== --- trunk/make_build.bat 2012-06-25 22:49:18 UTC (rev 1429) +++ trunk/make_build.bat 2012-06-25 23:45:09 UTC (rev 1430) @@ -1,6 +1,6 @@ +@echo off rem $Id$ -@echo off set VERSION=actual-local REM set the following to build or to rebuild @@ -12,7 +12,7 @@ rem set TARGET=Debug echo %ACTION% in %TARGET% mode into scstudio-setup-%VERSION%.exe -echo. +echo( pushd %~dp0 @@ -34,31 +34,64 @@ ) -echo. +echo( echo Compiling algorithms ... %DEVENV_COMMAND% "%PROJECT_TRUNK_DIR%\scstudio.sln" /%ACTION% %TARGET% | findstr /v "CMake"| findstr "up-to-date error succeeded" -IF %errorlevel% NEQ 0 EXIT +IF %errorlevel% NEQ 0 ( + echo( + echo An error occured. For debuging, open %PROJECT_TRUNK_DIR%\scstudio.sln in your Visual Studio. + pause >nul + EXIT +) -echo. +echo( echo Compiling visio addon ... %DEVENV_COMMAND% "%PROJECT_TRUNK_DIR%\src\view\visio\scstudio.sln" /%ACTION% %TARGET% | findstr /v "CMake"| findstr "up-to-date error succeeded" -IF %errorlevel% NEQ 0 EXIT +IF %errorlevel% NEQ 0 ( + echo( + echo An error occured. For debuging, open %PROJECT_TRUNK_DIR%\src\view\visio\scstudio.sln in your Visual Studio. + pause >nul + EXIT +) -echo. +echo( echo Compiling visio setup-nsis ... %DEVENV_COMMAND% "%PROJECT_TRUNK_DIR%\src\view\visio\scstudio.sln" /project setup-nsis /%ACTION% %TARGET% | findstr /v "CMake"| findstr "up-to-date error succeeded" -IF %errorlevel% NEQ 0 EXIT +IF %errorlevel% NEQ 0 ( + echo( + echo An error occured. For debuging, open %PROJECT_TRUNK_DIR%\src\view\visio\scstudio.sln in your Visual Studio. + pause >nul + EXIT +) -echo. +echo( echo Compiling installation package ... %NSIS_EXE% /V1 /DVERSION=%VERSION% /DBUILD_TYPE=%TARGET% "%PROJECT_TRUNK_DIR%\src\view\visio\scstudio.nsi" -IF %errorlevel% NEQ 0 EXIT +IF %errorlevel% NEQ 0 ( + echo( + echo An error occured. For debuging, run: + echo %NSIS_EXE% /V4 /PAUSE /DVERSION=%VERSION% /DBUILD_TYPE=%TARGET% "%PROJECT_TRUNK_DIR%\src\view\visio\scstudio.nsi" + pause >nul + EXIT +) + %SIGN_TOOL_EXE% sign /a "%PROJECT_TRUNK_DIR%\src\view\visio\scstudio-setup-%VERSION%.exe" -IF %errorlevel% NEQ 0 EXIT +IF %errorlevel% NEQ 0 ( + echo( + echo An error occured. Maybe a certificate for signing is missing. For debuging, run: + echo %SIGN_TOOL_EXE% sign /a "%PROJECT_TRUNK_DIR%\src\view\visio\scstudio-setup-%VERSION%.exe" + pause >nul + EXIT +) move "%PROJECT_TRUNK_DIR%\src\view\visio\scstudio-setup-%VERSION%.exe" "%PROJECT_TRUNK_DIR%" -echo "========== Done ==========" -echo. +echo( +echo ======================================= +echo = +echo = %PROJECT_TRUNK_DIR%\scstudio-setup-%VERSION%.exe +echo = +echo ========== successfully done ========== +echo( choice /N /M "Would you like to install it? y/[n] " If %Errorlevel% EQU 1 ( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |