Author: peterw
Date: Tue Oct 23 06:44:23 2007
New Revision: 29810
URL: http://svn.reactos.org/svn/reactos?rev=29810&view=rev
Log:
- Remove the dependency on cut from sSVN.cmd.
Modified:
trunk/tools/RosBE-Windows/Root/sSVN.cmd
Modified: trunk/tools/RosBE-Windows/Root/sSVN.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/sSVN.cmd?…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/sSVN.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/sSVN.cmd Tue Oct 23 06:44:23 2007
@@ -56,8 +56,8 @@
::
if "%1" == "status" (
title Status
- for /f "usebackq" %%i in (`"svn info | find "Revision:" | cut -d " " -f 2"`) do set OFFSVN=%%i
- for /f "usebackq" %%j in (`"svn info svn://svn.reactos.org/reactos/trunk/reactos | find "Revision:" | cut -d " " -f 2"`) do set ONSVN=%%j
+ for /f "usebackq tokens=2" %%i in (`"svn info | find "Revision:""`) do set OFFSVN=%%i
+ for /f "usebackq tokens=2" %%j in (`"svn info svn://svn.reactos.org/reactos/trunk/reactos | find "Revision:""`) do set ONSVN=%%j
call :UP
goto :ExitSVN
)
Author: dreimer
Date: Tue Oct 23 05:38:27 2007
New Revision: 29807
URL: http://svn.reactos.org/svn/reactos?rev=29807&view=rev
Log:
Get rid of svnversion.exe and its need in ssvn.cmd.
Now we call cut two times, but there seems to be NO way to get around it. If you try to do it without cut, then it wont load anything useful into the Variables, because the Variables are filled even before svn outputs anything. I even tried "cmd /V:ON /K" no way...
Modified:
trunk/tools/RosBE-Windows/Root/options.cmd
trunk/tools/RosBE-Windows/Root/sSVN.cmd
Modified: trunk/tools/RosBE-Windows/Root/options.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/options.c…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/options.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/options.cmd Tue Oct 23 05:38:27 2007
@@ -2,7 +2,7 @@
:: PROJECT: RosBE - ReactOS Build Environment for Windows
:: LICENSE: GPL - See LICENSE.txt in the top level directory.
:: FILE: Root/options.cmd
-:: PURPOSE: Starts options.exe and reboots RosBE at the End.
+:: PURPOSE: Starts options.exe and restarts RosBE afterwards.
:: COPYRIGHT: Copyright 2007 Daniel Reimer <reimer.daniel(a)freenet.de>
::
::
Modified: trunk/tools/RosBE-Windows/Root/sSVN.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/sSVN.cmd?…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/sSVN.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/sSVN.cmd Tue Oct 23 05:38:27 2007
@@ -56,7 +56,7 @@
::
if "%1" == "status" (
title Status
- for /f "usebackq" %%i in (`svnversion .`) do set OFFSVN=%%i
+ for /f "usebackq" %%i in (`"svn info | find "Revision:" | cut -d " " -f 2"`) do set OFFSVN=%%i
for /f "usebackq" %%j in (`"svn info svn://svn.reactos.org/reactos/trunk/reactos | find "Revision:" | cut -d " " -f 2"`) do set ONSVN=%%j
call :UP
goto :ExitSVN
Author: peterw
Date: Tue Oct 23 04:56:07 2007
New Revision: 29806
URL: http://svn.reactos.org/svn/reactos?rev=29806&view=rev
Log:
- Remove the doskey macro for a component if it is not actually present.
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…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/RosBE.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/RosBE.cmd Tue Oct 23 04:56:07 2007
@@ -83,7 +83,7 @@
::
:: Load the doskey macros that serve as our commands.
::
-doskey /macrofile="%_ROSBE_BASEDIR%\RosBE.mac"
+call :LOADDOSKEYMACROS
::
:: Look if the Source Folder is empty. If so, ask for using "ssvn create".
@@ -122,4 +122,19 @@
echo.
goto :EOF
+::
+:: Load the doskey macros and delete any macros for components
+:: that are not actually present.
+::
+:LOADDOSKEYMACROS
+ doskey /macrofile="%_ROSBE_BASEDIR%\RosBE.mac"
+
+ if not exist "%_ROSBE_BASEDIR%\chdefdir.cmd" ( doskey CHDEFDIR= )
+ if not exist "%_ROSBE_BASEDIR%\Config.cmd" ( doskey CONFIG= )
+ if not exist "%_ROSBE_BASEDIR%\reladdr2line.cmd" ( doskey RADDR2LINE= )
+ if not exist "%_ROSBE_BASEDIR%\scut.cmd" ( doskey SCUT= )
+ if not exist "%_ROSBE_BASEDIR%\sSVN.cmd" ( doskey SSVN= )
+ if not exist "%_ROSBE_BASEDIR%\options.cmd" ( doskey OPTIONS= )
+goto :EOF
+
:ExitRosBE
Author: peterw
Date: Tue Oct 23 04:27:32 2007
New Revision: 29805
URL: http://svn.reactos.org/svn/reactos?rev=29805&view=rev
Log:
- Remove the need for cutz.cmd and delete it.
Removed:
trunk/tools/RosBE-Windows/Tools/cutz.cmd
Modified:
trunk/tools/RosBE-Windows/Root/sSVN.cmd
Modified: trunk/tools/RosBE-Windows/Root/sSVN.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/sSVN.cmd?…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/sSVN.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/sSVN.cmd Tue Oct 23 04:27:32 2007
@@ -57,7 +57,7 @@
if "%1" == "status" (
title Status
for /f "usebackq" %%i in (`svnversion .`) do set OFFSVN=%%i
- for /f "usebackq" %%j in (`"svn info svn://svn.reactos.org/reactos/trunk/reactos|find "Revision:"|cutz svn"`) do set ONSVN=%%j
+ for /f "usebackq" %%j in (`"svn info svn://svn.reactos.org/reactos/trunk/reactos | find "Revision:" | cut -d " " -f 2"`) do set ONSVN=%%j
call :UP
goto :ExitSVN
)
Removed: trunk/tools/RosBE-Windows/Tools/cutz.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Tools/cutz.cmd…
==============================================================================
--- trunk/tools/RosBE-Windows/Tools/cutz.cmd (original)
+++ trunk/tools/RosBE-Windows/Tools/cutz.cmd (removed)
@@ -1,12 +1,0 @@
-::
-:: PROJECT: RosBE - ReactOS Build Environment for Windows
-:: LICENSE: GPL - See COPYING in the top level directory
-:: FILE: Tools/cutz.cmd
-:: PURPOSE: Bypass a stupid bug in cut.
-:: COPYRIGHT: Copyright 2007 Daniel Reimer <reimer.daniel(a)freenet.de>
-::
-::
-@echo off
-if "%1" == "svn" (
- cut -d " " -f 2
-)
Author: dreimer
Date: Tue Oct 23 01:59:49 2007
New Revision: 29801
URL: http://svn.reactos.org/svn/reactos?rev=29801&view=rev
Log:
Added more Error Messages to prevent confusion and stupid mistakes.
Edited some Errors.
Modified:
trunk/tools/RosBE-Windows/Root/chdefdir.cmd
trunk/tools/RosBE-Windows/Root/reladdr2line.cmd
trunk/tools/RosBE-Windows/Root/scut.cmd
Modified: trunk/tools/RosBE-Windows/Root/chdefdir.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/chdefdir.…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/chdefdir.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/chdefdir.cmd Tue Oct 23 01:59:49 2007
@@ -25,7 +25,7 @@
set _ROSBE_ROSSOURCEDIR=%_ROSBE_PREVIOUSSOURCEDIR%
) else (
if not exist "%1\." (
- echo The path specified doesn't seem to exist.
+ echo ERROR: The path specified doesn't seem to exist.
goto :EOC
)
set _ROSBE_ROSSOURCEDIR=%1
@@ -36,14 +36,14 @@
set /p XY="Please enter a ReactOS source directory, or 'previous': "
if /i "%XY%" == "" (
- echo You must either enter a directory or "previous".
+ echo ERROR: You must either enter a valid directory or "previous".
goto :EOC
)
if /i "%XY%"=="previous" (
set _ROSBE_ROSSOURCEDIR=%_ROSBE_PREVIOUSSOURCEDIR%
) else (
if not exist "%XY%\." (
- echo The path specified doesn't seem to exist.
+ echo ERROR: The path specified doesn't seem to exist.
goto :EOC
)
set _ROSBE_ROSSOURCEDIR=%XY%
Modified: trunk/tools/RosBE-Windows/Root/reladdr2line.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/reladdr2l…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/reladdr2line.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/reladdr2line.cmd Tue Oct 23 01:59:49 2007
@@ -37,6 +37,18 @@
set /p _2="Please enter the address you would like to analyze: "
:EOC
+if not exist "%_1%\." (
+ echo ERROR: The path specified doesn't seem to exist.
+ goto :END
+)
+if /i "%_1%" == "" (
+ echo ERROR: You must enter a valid directory.
+ goto :END
+)
+if /i "%_2%" == "" (
+ echo ERROR: You must enter a address to analyze.
+ goto :END
+)
::
:: First get the ImageBase of the File. If its smaller than the given
:: Parameter, everything is ok, because it was already added onto the
@@ -52,4 +64,5 @@
raddr2line "%_1%" "%relbase%" 2>NUL
)
+:END
title ReactOS Build Environment %_ROSBE_VERSION%
Modified: trunk/tools/RosBE-Windows/Root/scut.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/scut.cmd?…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/scut.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/scut.cmd Tue Oct 23 01:59:49 2007
@@ -53,6 +53,14 @@
::
:DEF
set /p XY="Choose your Source Folder: "
+if not exist "%XY%\." (
+ echo ERROR: The path specified doesn't seem to exist.
+ goto :END
+)
+if /i "%XY%" == "" (
+ echo ERROR: You must enter a valid directory.
+ goto :END
+)
:RUN
for /f "usebackq tokens=1-2 delims=, skip=1" %%i in (`type "%_ROSBE_BASEDIR%\srclist.txt"`) do (
if %%i == %XY% (
@@ -82,8 +90,20 @@
:ADD1
set /p CUT="Choose your Shortcut: "
+if /i "%CUT%" == "" (
+ echo ERROR: You must enter a valid Shortcut.
+ goto :END
+)
:ADD2
set /p DIR="Choose your Source Folder: "
+if not exist "%DIR%\." (
+ echo ERROR: The path specified doesn't seem to exist.
+ goto :END
+)
+if /i "%DIR%" == "" (
+ echo ERROR: You must enter a valid directory.
+ goto :END
+)
:ADD23
for /f "usebackq tokens=1-2 delims=, skip=1" %%i in (`type "%_ROSBE_BASEDIR%\srclist.txt"`) do (
if %%i == %CUT% (
@@ -105,6 +125,10 @@
goto :REM1
)
set /p CUTREM="Choose your Shortcut: "
+if /i "%CUTREM%" == "" (
+ echo ERROR: You must enter a valid Shortcut.
+ goto :END
+)
:REM1
set _ROSBE_REM=0
for /f "usebackq tokens=1-2 delims=," %%i in (`type "%_ROSBE_BASEDIR%\srclist.txt"`) do (
@@ -133,6 +157,10 @@
goto :DEF1
)
set /p DIR="Choose your new Default Shortcut: "
+if /i "%DIR%" == "" (
+ echo ERROR: You must enter a valid Shortcut.
+ goto :END
+)
:DEF1
call "%_ROSBE_BASEDIR%\scut.cmd" edit Base %DIR%
@@ -155,8 +183,20 @@
:EDIT1
set /p CUT="Choose your Shortcut: "
+if /i "%CUT%" == "" (
+ echo ERROR: You must enter a valid Shortcut.
+ goto :END
+)
:EDIT2
set /p DIR="Choose your Source Folder: "
+if not exist "%DIR%\." (
+ echo ERROR: The path specified doesn't seem to exist.
+ goto :END
+)
+if /i "%DIR%" == "" (
+ echo ERROR: You must enter a valid directory.
+ goto :END
+)
:EDIT23
set _ROSBE_EDIT=0
for /f "usebackq tokens=1-2 delims=," %%i in (`type "%_ROSBE_BASEDIR%\srclist.txt"`) do (