Add remakex command to rosbe

svn path=/trunk/tools/RosBE/; revision=1188
This commit is contained in:
Daniel Reimer 2010-03-07 12:18:38 +00:00
parent 4b8b23374e
commit 68d8bac5a7
6 changed files with 77 additions and 2 deletions

View File

@ -60,6 +60,12 @@ if ("$args" -eq "") {
" 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 @@ if ("$args" -eq "") {
" 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,12 +205,20 @@ if ("$args" -eq "") {
""
}
} 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."
}
} elseif ("$args" -eq "scut") {
if (Test-Path "$_ROSBE_BASEDIR\scut.ps1") {
IEX "& scut.exe --help"

View File

@ -0,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@freenet.de>
#
$argindex = 0
while ( "$($args[$argindex])" -ne "") {
$cl = "$($args[$argindex])" + "_clean" + " " + "$($args[$argindex])"
makex $cl
$argindex += 1
}
remove-variable cl

View File

@ -118,6 +118,10 @@ function LoadAliases {
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
}

View File

@ -68,6 +68,12 @@ if "%1" == "" (
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 @@ if "%1" == "" (
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

View File

@ -0,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@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%

View File

@ -127,6 +127,7 @@ Section -BaseFiles SEC01
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 @@ SetShellVarContext current
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 @@ Section Uninstall
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"