Author: dreimer
Date: Mon Nov 2 11:48:16 2009
New Revision: 43909
URL:
http://svn.reactos.org/svn/reactos?rev=43909&view=rev
Log:
I proudly introduce my new Toy. The remake command. It fully rebuilds one or several
modules without needing to write make MODULE1_CLEAN MODULE1 MODULE2_CLEAN MODULE2 etcetc.
Some tidy up work.
Added:
trunk/tools/RosBE/RosBE-Windows/Powershell/Remake.ps1 (with props)
trunk/tools/RosBE/RosBE-Windows/Root/Remake.cmd (with props)
Modified:
trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/Clean.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/Help.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/chdefdir.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/options.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/reladdr2line.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/rosbe-gcc-env.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/sSVN.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1
trunk/tools/RosBE/RosBE-Windows/Root/Help.cmd
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1 [iso-8859-1] Mon Nov 2 11:48:16
2009
@@ -4,7 +4,6 @@
# FILE: Root/Build.ps1
# PURPOSE: Perform the build of ReactOS.
# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
-#
#
# Check if config.template.rbuild is newer than config.rbuild, if it is then
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/Clean.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/Clean.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/Clean.ps1 [iso-8859-1] Mon Nov 2 11:48:16
2009
@@ -4,7 +4,6 @@
# FILE: Root/Clean.ps1
# PURPOSE: Clean the ReactOS source directory.
# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
-#
#
$host.ui.RawUI.WindowTitle = "Cleaning..."
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 [iso-8859-1] Mon Nov 2 11:48:16
2009
@@ -4,7 +4,6 @@
# FILE: Root/Config.ps1
# PURPOSE: A Basic Config.rbuild Creator for ReactOS.
# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
-#
#
$host.ui.RawUI.WindowTitle = "ReactOS Build Configurator"
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] Mon Nov 2 11:48:16
2009
@@ -4,7 +4,6 @@
# FILE: Root/Help.ps1
# PURPOSE: Display help for the commands included with the ReactOS Build
Environment.
# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
-#
#
# Check if we are displaying help on all commands, if so, display it.
@@ -51,6 +50,11 @@
" specific bugs in ReactOS."
}
+ if (Test-Path "$_ROSBE_BASEDIR\Remake.ps1") {
+ " remake [OPTIONS] - Cleans one or several specific modules
and"
+ " immediately rebuilds it cleanly."
+ }
+
if (Test-Path "$_ROSBE_BASEDIR\scut.ps1") {
" scut [OPTIONS] - List, add, edit, remove, switch and default
to"
" shortcutted ReactOS source directories."
@@ -180,6 +184,13 @@
" ADDRESS - The address to be translated."
""
}
+} elseif ("$args" -eq "Remake") {
+ if (Test-Path "$_ROSBE_BASEDIR\Remake.cmd") {
+ " 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 "scut") {
if (Test-Path "$_ROSBE_BASEDIR\scut.ps1") {
IEX "&'$_ROSBE_BASEDIR\Tools\scut.exe' --help"
Added: trunk/tools/RosBE/RosBE-Windows/Powershell/Remake.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/Remake.ps1 (added)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/Remake.ps1 [iso-8859-1] Mon Nov 2 11:48:16
2009
@@ -1,0 +1,15 @@
+#
+# PROJECT: RosBE - ReactOS Build Environment for Windows
+# LICENSE: GNU General Public License v2. (see LICENSE.txt)
+# FILE: Root/Remake.ps1
+# PURPOSE: Fully re-make one or several modules.
+# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
+#
+
+$argindex = 0
+while ( "$($args[$argindex])" -ne "") {
+ $cl = "$($args[$argindex])" + "_clean" + " " +
"$($args[$argindex])"
+ make $cl
+ $argindex += 1
+}
+remove-variable cl
Propchange: trunk/tools/RosBE/RosBE-Windows/Powershell/Remake.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] Mon Nov 2 11:48:16
2009
@@ -5,7 +5,6 @@
# PURPOSE: This script provides/sets up various build environments for
# ReactOS. Currently it provides a GCC 4.1.3 build environment.
# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
-#
#
$host.ui.RawUI.WindowTitle = "ReactOS Build Environment $_ROSBE_VERSION"
@@ -109,6 +108,10 @@
set-alias RADDR2LINE "$_ROSBE_BASEDIR\reladdr2line.ps1" -scope Global
}
+ if (Test-Path "$_ROSBE_BASEDIR\Remake.ps1") {
+ set-alias REMAKE "$_ROSBE_BASEDIR\Remake.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/Powershell/chdefdir.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/chdefdir.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/chdefdir.ps1 [iso-8859-1] Mon Nov 2
11:48:16 2009
@@ -5,7 +5,6 @@
# PURPOSE: Tool to change the current working ReactOS source directory
# in RosBE.
# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
-#
#
$host.ui.RawUI.WindowTitle = "Change the current working ReactOS source
directory..."
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/options.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/options.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/options.ps1 [iso-8859-1] Mon Nov 2
11:48:16 2009
@@ -4,7 +4,6 @@
# FILE: Root/options.ps1
# PURPOSE: Starts options.exe and restarts RosBE afterwards.
# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
-#
#
$host.ui.RawUI.WindowTitle = "Options"
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/reladdr2line.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/reladdr2line.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/reladdr2line.ps1 [iso-8859-1] Mon Nov 2
11:48:16 2009
@@ -4,7 +4,6 @@
# FILE: Root/reladdr2line.ps1
# PURPOSE: Converts a value to hex and displays it.
# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
-#
#
$host.ui.RawUI.WindowTitle = "reladdr2line..."
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/rosbe-gcc-env.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/rosbe-gcc-env.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/rosbe-gcc-env.ps1 [iso-8859-1] Mon Nov 2
11:48:16 2009
@@ -4,7 +4,6 @@
# FILE: Root/rosbe-gcc-env.ps1
# PURPOSE: Set up the GCC 4.x.x build environment.
# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
-#
#
# Check if we're switching to the AMD64 architecture
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/sSVN.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/sSVN.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/sSVN.ps1 [iso-8859-1] Mon Nov 2 11:48:16
2009
@@ -4,7 +4,6 @@
# FILE: Root/sSVN.ps1
# PURPOSE: Integrated SVN Client.
# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
-#
#
function UP($arg) {
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/update.ps1 [iso-8859-1] Mon Nov 2 11:48:16
2009
@@ -4,7 +4,6 @@
# FILE: Root/update.ps1
# PURPOSE: RosBE Updater.
# COPYRIGHT: Copyright 2009 Daniel Reimer <reimer.daniel(a)freenet.de>
-#
#
$host.ui.RawUI.WindowTitle = "Updating..."
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] Mon Nov 2 11:48:16 2009
@@ -58,6 +58,11 @@
echo specific bugs in ReactOS.
)
+ if exist "%_ROSBE_BASEDIR%\Remake.cmd" (
+ echo remake [OPTIONS] - Cleans one or several specific modules and
+ echo immediately rebuilds it cleanly.
+ )
+
if exist "%_ROSBE_BASEDIR%\scut.cmd" (
echo scut [OPTIONS] - List, add, edit, remove, switch and default to
echo shortcutted ReactOS source directories.
@@ -186,6 +191,13 @@
echo ADDRESS - The address to be translated.
echo.
)
+) else if /i "%1" == "Remake" (
+ if exist "%_ROSBE_BASEDIR%\Remake.cmd" (
+ echo Usage: remake [OPTIONS]
+ echo Cleans one or several specific modules and immediately rebuilds it
cleanly.
+ echo.
+ echo OPTIONS - One or more Module names to rebuild.
+ )
) else if /i "%1" == "scut" (
if exist "%_ROSBE_BASEDIR%\scut.cmd" (
"%_ROSBE_BASEDIR%\Tools\scut.exe" --help
Added: trunk/tools/RosBE/RosBE-Windows/Root/Remake.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Rem…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/Remake.cmd (added)
+++ trunk/tools/RosBE/RosBE-Windows/Root/Remake.cmd [iso-8859-1] Mon Nov 2 11:48:16 2009
@@ -1,0 +1,24 @@
+::
+:: PROJECT: RosBE - ReactOS Build Environment for Windows
+:: LICENSE: GNU General Public License v2. (see LICENSE.txt)
+:: FILE: Root/Remake.cmd
+:: PURPOSE: Fully re-make one or several modules.
+:: COPYRIGHT: Copyright 2009 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%\Make.cmd" %1_clean %1
+ shift /1
+ echo.
+ GOTO :WHILE %*
+
+title ReactOS Build Environment %_ROSBE_VERSION%
Propchange: trunk/tools/RosBE/RosBE-Windows/Root/Remake.cmd
------------------------------------------------------------------------------
svn:eol-style = native