From 3eac88659119908bcd869405aa941eef69b3e4f1 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 6 Sep 2012 11:57:07 +0300 Subject: [PATCH] build.bat: better indentation, remove useless quotes and escape the special characters in the help screen --- build.bat | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/build.bat b/build.bat index 79a85b8a7..a0c19630e 100644 --- a/build.bat +++ b/build.bat @@ -27,14 +27,14 @@ REM parse qmakespec to see if it's some msvc set MAKE=nmake ) -if "%2" == "" set TARGET=release +if "%2" == "" set TARGET=release +if "%2" == "debug" set TARGET=debug if "%2" == "release" set TARGET=release -if "%2" == "debug" set TARGET=debug +if "%1" == "all" goto cppcheck if "%1" == "cppcheck" goto cppcheck -if "%1" == "gui" goto gui -if "%1" == "tests" goto tests -if "%1" == "all" goto cppcheck +if "%1" == "gui" goto gui +if "%1" == "tests" goto tests goto help :cppcheck @@ -61,9 +61,9 @@ popd goto end :help -echo "Syntax: build [debug|release]" -echo " where is any of cppcheck/gui/tests/all" -echo " debug or release define used configuration" -echo " all- target builds both cppcheck and gui. +echo Syntax: build ^ [debug^|release] +echo where ^ is any of cppcheck/gui/tests/all +echo debug or release define used configuration +echo all- target builds both cppcheck and gui. :end