[ros-diffs] [dreimer] 28125: Update Help and Comments. Set Default Shortcut active after setting it.

dreimer at svn.reactos.org dreimer at svn.reactos.org
Fri Aug 3 13:47:21 CEST 2007


Author: dreimer
Date: Fri Aug  3 15:47:20 2007
New Revision: 28125

URL: http://svn.reactos.org/svn/reactos?rev=28125&view=rev
Log:
Update Help and Comments.
Set Default Shortcut active after setting it.

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

Modified: trunk/tools/RosBE-Windows/Root/Help.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/Help.cmd?rev=28125&r1=28124&r2=28125&view=diff
==============================================================================
--- trunk/tools/RosBE-Windows/Root/Help.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/Help.cmd Fri Aug  3 15:47:20 2007
@@ -118,6 +118,9 @@
     echo              (Optional: "Shortcut" "Directory" as second and third parameter) 
     echo    remove  - Removes a shortcut.
     echo              (Optional: "Shortcut" as second parameter)
+    echo    def     - Chooses Default Shortcut which is enabled on
+    echo              every start of RosBE. "Default" is the Source
+    echo              Directory as you know it from previous Versions 
     goto :EOF
 )
 if not "%1" == "" (

Modified: trunk/tools/RosBE-Windows/Root/RosBE.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/RosBE.cmd?rev=28125&r1=28124&r2=28125&view=diff
==============================================================================
--- trunk/tools/RosBE-Windows/Root/RosBE.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/RosBE.cmd Fri Aug  3 15:47:20 2007
@@ -58,8 +58,8 @@
 :EndCommandParse
 
 ::
-:: Save our initial directory (should be the ReactOS source directory) 
-:: and add PATH for Tools Folder.
+:: Load the Base Directory from the Shortcut-XML and set it as new
+:: Source Directory and add PATH for Tools Folder.
 ::
 set PATH=%ROSBEBASEDIR%\Tools;%PATH%
 for /f "usebackq" %%i in (`"grep base= "%ROSBEBASEDIR%\srclist.xml"|cutz main"`) do @SET scut=%%i
@@ -82,7 +82,8 @@
 echo -------------------------------------------------
 
 ::
-:: Load the macros that serve as our commands.
+:: Load the macros that serve as our commands and set new Source
+:: Directory / Default Source Directory.
 ::
 doskey /macrofile="%ROSBEBASEDIR%\RosBE.mac"
 if "%scut%" == "Default" (

Modified: trunk/tools/RosBE-Windows/Root/scut.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/scut.cmd?rev=28125&r1=28124&r2=28125&view=diff
==============================================================================
--- trunk/tools/RosBE-Windows/Root/scut.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/scut.cmd Fri Aug  3 15:47:20 2007
@@ -10,6 +10,9 @@
 
 title Choose your Source Folder...
 
+::
+:: Receive the first Parameter and decide what to do.
+::
 if /I "%1"=="" (
     goto :DEF
 )
@@ -32,6 +35,9 @@
 SET /P XY=
 goto :RUN
 
+::
+:: Load Shortcut from XML and set it active.
+::
 :RUN
 for /f "usebackq" %%i in (`"grep name=\"%XY%\" "%ROSBEBASEDIR%\srclist.xml"|cutz dir"`) do @SET dir=%%i
 cd /D %dir%
@@ -51,6 +57,9 @@
     goto :ADD1
 )
 
+::
+:: Add new Shortcut to XML.
+::
 :ADD1
 echo Choose your Shortcut:
 SET /P CUT=
@@ -64,6 +73,9 @@
 ren "%ROSBEBASEDIR%\srclist2.xml" srclist.xml
 goto :END
 
+::
+:: Remove Shortcut from XML.
+::
 :REM
 if not "%2" == "" (
     set CUTREM=%2
@@ -77,6 +89,9 @@
 ren "%ROSBEBASEDIR%\srclist2.xml" srclist.xml
 goto :END
 
+::
+:: Set Default Shortcut.
+::
 :DEF2
 if not "%2" == "" (
     set DEF=%2
@@ -88,6 +103,7 @@
 sed "s/base=\".*\"/base=\"%DEF%\"/g" "%ROSBEBASEDIR%\srclist.xml" > "%ROSBEBASEDIR%\srclist2.xml"
 del "%ROSBEBASEDIR%\srclist.xml"
 ren "%ROSBEBASEDIR%\srclist2.xml" srclist.xml
+call "%ROSBEBASEDIR%\RosBE.cmd"
 
 :END
 title ReactOS Build Environment %_VER%




More information about the Ros-diffs mailing list