Author: dreimer
Date: Sun Mar 7 13:18:38 2010
New Revision: 45989
URL:
http://svn.reactos.org/svn/reactos?rev=45989&view=rev
Log:
Add remakex command to rosbe
Added:
trunk/tools/RosBE/RosBE-Windows/Powershell/Remakex.ps1 (with props)
trunk/tools/RosBE/RosBE-Windows/Root/Remakex.cmd (with props)
Modified:
trunk/tools/RosBE/RosBE-Windows/Powershell/Help.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE.ps1
trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd
trunk/tools/RosBE/RosBE-Windows/RosBE.nsi
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/Help.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/Help.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/Help.ps1 [iso-8859-1] Sun Mar 7 13:18:38
2010
@@ -60,6 +60,12 @@
" immediately rebuilds it cleanly."
}
+ if (Test-Path "$_ROSBE_BASEDIR\Remakex.ps1") {
+ " remakex [OPTIONS] - Cleans one or several specific modules
and"
+ " immediately rebuilds it cleanly and
multi-"
+ " threaded."
+ }
+
if (Test-Path "$_ROSBE_BASEDIR\scut.ps1") {
" scut [OPTIONS] - List, add, edit, remove, switch and default
to"
" shortcutted ReactOS source directories."
@@ -125,7 +131,7 @@
" and generates a new makefile. This will take a
while."
" ""module""_depends - Does a dependency check for
one module with the"
" appropiate name."
- " NOTE: The number makex uses can be modified by editing Build.cmd"
+ " NOTE: The number makex uses can be modified by editing Build.ps1"
" located in the RosBE directory, instructions for doing so are"
" contained within the file."
} elseif ("$args" -eq "basedir") {
@@ -199,9 +205,17 @@
""
}
} elseif ("$args" -eq "Remake") {
- if (Test-Path "$_ROSBE_BASEDIR\Remake.cmd") {
+ if (Test-Path "$_ROSBE_BASEDIR\Remake.ps1") {
" Usage: remake [OPTIONS]"
" Cleans one or several specific modules and immediately rebuilds it
cleanly."
+ ""
+ " OPTIONS - One or more Module names to rebuild."
+ }
+} elseif ("$args" -eq "Remakex") {
+ if (Test-Path "$_ROSBE_BASEDIR\Remakex.ps1") {
+ " Usage: remakex [OPTIONS]"
+ " Cleans one or several specific modules and immediately rebuilds it
cleanly"
+ " and multithreaded."
""
" OPTIONS - One or more Module names to rebuild."
}
Added: trunk/tools/RosBE/RosBE-Windows/Powershell/Remakex.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/Remakex.ps1 (added)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/Remakex.ps1 [iso-8859-1] Sun Mar 7
13:18:38 2010
@@ -1,0 +1,15 @@
+#
+# PROJECT: RosBE - ReactOS Build Environment for Windows
+# LICENSE: GNU General Public License v2. (see LICENSE.txt)
+# FILE: Root/Remakex.ps1
+# PURPOSE: Fully re-make one or several modules multithreaded.
+# COPYRIGHT: Copyright 2010 Daniel Reimer <reimer.daniel(a)freenet.de>
+#
+
+$argindex = 0
+while ( "$($args[$argindex])" -ne "") {
+ $cl = "$($args[$argindex])" + "_clean" + " " +
"$($args[$argindex])"
+ makex $cl
+ $argindex += 1
+}
+remove-variable cl
Propchange: trunk/tools/RosBE/RosBE-Windows/Powershell/Remakex.ps1
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE.ps1 [iso-8859-1] Sun Mar 7 13:18:38
2010
@@ -118,6 +118,10 @@
set-alias REMAKE "$_ROSBE_BASEDIR\Remake.ps1" -scope Global
}
+ if (Test-Path "$_ROSBE_BASEDIR\Remakex.ps1") {
+ set-alias REMAKEX "$_ROSBE_BASEDIR\Remakex.ps1" -scope Global
+ }
+
if (Test-Path "$_ROSBE_BASEDIR\scut.ps1") {
set-alias SCUT "$_ROSBE_BASEDIR\scut.ps1" -scope Global
}
Modified: trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Hel…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd [iso-8859-1] Sun Mar 7 13:18:38 2010
@@ -68,6 +68,12 @@
echo immediately rebuilds it cleanly.
)
+ if exist "%_ROSBE_BASEDIR%\Remakex.cmd" (
+ echo remakex [OPTIONS] - Cleans one or several specific modules and
+ echo immediately rebuilds it cleanly and multi-
+ echo threaded.
+ )
+
if exist "%_ROSBE_BASEDIR%\scut.cmd" (
echo scut [OPTIONS] - List, add, edit, remove, switch and default to
echo shortcutted ReactOS source directories.
@@ -211,6 +217,14 @@
echo.
echo OPTIONS - One or more Module names to rebuild.
)
+) else if /i "%1" == "Remakex" (
+ if exist "%_ROSBE_BASEDIR%\Remakex.cmd" (
+ echo Usage: remakex [OPTIONS]
+ echo Cleans one or several specific modules and immediately rebuilds it
cleanly
+ echo and multithreaded.
+ echo.
+ echo OPTIONS - One or more Module names to rebuild.
+ )
) else if /i "%1" == "scut" (
if exist "%_ROSBE_BASEDIR%\scut.cmd" (
scut.exe --help
Added: trunk/tools/RosBE/RosBE-Windows/Root/Remakex.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Rem…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/Remakex.cmd (added)
+++ trunk/tools/RosBE/RosBE-Windows/Root/Remakex.cmd [iso-8859-1] Sun Mar 7 13:18:38
2010
@@ -1,0 +1,24 @@
+::
+:: PROJECT: RosBE - ReactOS Build Environment for Windows
+:: LICENSE: GNU General Public License v2. (see LICENSE.txt)
+:: FILE: Root/Remakex.cmd
+:: PURPOSE: Fully re-make one or several modules multithreaded.
+:: COPYRIGHT: Copyright 2010 Daniel Reimer <reimer.daniel(a)freenet.de>
+::
+
+@echo off
+if not defined _ROSBE_DEBUG set _ROSBE_DEBUG=0
+if %_ROSBE_DEBUG% == 1 (
+ @echo on
+)
+
+title 'Remake %*' started: %TIMERAW% (%ROS_ARCH%)
+
+:WHILE
+ if "%1" == "" goto :EOF
+ call "%_ROSBE_BASEDIR%\Makex.cmd" %1_clean %1
+ shift /1
+ echo.
+ GOTO :WHILE %*
+
+title ReactOS Build Environment %_ROSBE_VERSION%
Propchange: trunk/tools/RosBE/RosBE-Windows/Root/Remakex.cmd
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/tools/RosBE/RosBE-Windows/RosBE.nsi
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/RosBE.ns…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/RosBE.nsi [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/RosBE.nsi [iso-8859-1] Sun Mar 7 13:18:38 2010
@@ -127,6 +127,7 @@
File /r Root\Make.cmd
File /r Root\Makex.cmd
File /r Root\Remake.cmd
+ File /r Root\Remakex.cmd
File /r Root\Renv.cmd
File /r Root\RosBE.cmd
File /r Root\rosbe-gcc-env.cmd
@@ -283,6 +284,7 @@
File /r Components\Powershell\Config.ps1
File /r Components\Powershell\options.ps1
File /r Components\Powershell\Remake.ps1
+ File /r Components\Powershell\Remakex.ps1
File /r Components\Powershell\kdbg.ps1
File /r Components\Powershell\reladdr2line.ps1
File /r Components\Powershell\scut.ps1
@@ -420,7 +422,9 @@
Delete /REBOOTOK "$INSTDIR\reladdr2line.ps1"
Delete /REBOOTOK "$INSTDIR\Renv.cmd"
Delete /REBOOTOK "$INSTDIR\Remake.cmd"
+ Delete /REBOOTOK "$INSTDIR\Remakex.cmd"
Delete /REBOOTOK "$INSTDIR\Remake.ps1"
+ Delete /REBOOTOK "$INSTDIR\Remakex.ps1"
Delete /REBOOTOK "$INSTDIR\kdbg.cmd"
Delete /REBOOTOK "$INSTDIR\kdbg.ps1"
Delete /REBOOTOK "$INSTDIR\RosBE.cmd"