[ros-diffs] [dreimer] 29773: Set the gcc Version automatically by calling gcc -v instead of coding it into the cmd file.

dreimer at svn.reactos.org dreimer at svn.reactos.org
Mon Oct 22 12:50:51 CEST 2007


Author: dreimer
Date: Mon Oct 22 14:50:50 2007
New Revision: 29773

URL: http://svn.reactos.org/svn/reactos?rev=29773&view=rev
Log:
Set the gcc Version automatically by calling gcc -v instead of coding it into the cmd file.

Modified:
    trunk/tools/RosBE-Windows/Root/RosBE.cmd

Modified: trunk/tools/RosBE-Windows/Root/RosBE.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/RosBE.cmd?rev=29773&r1=29772&r2=29773&view=diff
==============================================================================
--- trunk/tools/RosBE-Windows/Root/RosBE.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/RosBE.cmd Mon Oct 22 14:50:50 2007
@@ -67,7 +67,7 @@
 ::
 :: Display the current version of GCC, NASM, ld and make.
 ::
-gcc -v 2>&1 | find "gcc version"
+echo %_ROSBE_GCCVER%
 nasm -v
 ld -v
 mingw32-make -v | find "GNU Make"
@@ -105,6 +105,9 @@
     ::
     set _ROSBE_GCCVERSION=4.1.3
     set PATH=%_ROSBE_MINGWPATH%\bin;%_ROSBE_MINGWPATH%\libexec\gcc\mingw32\4.1.3;%PATH%
+    gcc -v 2>&1 | find "gcc version" > "%_ROSBE_BASEDIR%\bla.tmp"
+    set /p _ROSBE_GCCVER=<"%_ROSBE_BASEDIR%\bla.tmp"
+    del "%_ROSBE_BASEDIR%\bla.tmp"
     set _ROSBE_MINGWMAKE=%_ROSBE_MINGWPATH%\bin\mingw32-make.exe
     if defined _ROSBE_OLDMODE (
         set C_INCLUDE_PATH=%_ROSBE_MINGWPATH%\include;%_ROSBE_MINGWPATH%\lib\gcc\mingw32\4.1.3\include
@@ -116,7 +119,7 @@
 
     echo *******************************************************************************
     echo *                                                                             *
-    echo *        ReactOS Build Environment %_ROSBE_VERSION%-4.1.3-20070703 (prerelease)    *
+    echo *   ReactOS Build Environment %_ROSBE_VERSION% - %_ROSBE_GCCVER%   *
     echo *                                                                             *
     echo *******************************************************************************
     echo.




More information about the Ros-diffs mailing list