Author: dreimer
Date: Thu Nov 6 16:09:47 2008
New Revision: 37233
URL:
http://svn.reactos.org/svn/reactos?rev=37233&view=rev
Log:
Hello to three new params on Powershell. Still six are left.
Synched the others to the latest changes in the cmd files.
Added:
trunk/tools/RosBE/RosBE-Windows/Powershell/charch.ps1 (with props)
trunk/tools/RosBE/RosBE-Windows/Powershell/chdefdir.ps1 (with props)
trunk/tools/RosBE/RosBE-Windows/Powershell/options.ps1 (with props)
Modified:
trunk/tools/RosBE/RosBE-Windows/Powershell/MinGW.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/RosBE.ps1
trunk/tools/RosBE/RosBE-Windows/Powershell/rosbe-gcc-env.ps1
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/MinGW.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/MinGW.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/MinGW.ps1 [iso-8859-1] Thu Nov 6 16:09:47
2008
@@ -21,8 +21,8 @@
$global:_ROSBE_BASEDIR = [System.IO.Path]::GetDirectoryName($0)
$global:_ROSBE_MODE = "MinGW"
$global:_ROSBE_ORIGINALPATH = "$ENV:PATH"
-$global:_ROSBE_HOST_MINGWPATH = "$_ROSBE_BASEDIR\4.1.3"
-$global:_ROSBE_TARGET_MINGWPATH = "$_ROSBE_BASEDIR\4.1.3"
+$global:_ROSBE_HOST_MINGWPATH = "$_ROSBE_BASEDIR\i386"
+$global:_ROSBE_TARGET_MINGWPATH = "$_ROSBE_BASEDIR\i386"
""
""
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] Thu Nov 6 16:09:47
2008
@@ -30,8 +30,8 @@
$global:_ROSBE_USECCACHE = 0
$global:_ROSBE_STRIP = 0
$global:_ROSBE_NOSTRIP = 0
-$global:_ROSBE_HOST_MINGWPATH = "$_ROSBE_BASEDIR\4.1.3"
-$global:_ROSBE_TARGET_MINGWPATH = "$_ROSBE_BASEDIR\4.1.3"
+$global:_ROSBE_HOST_MINGWPATH = "$_ROSBE_BASEDIR\i386"
+$global:_ROSBE_TARGET_MINGWPATH = "$_ROSBE_BASEDIR\i386"
$global:_ROSBE_LOGDIR = "$_ROSBE_ROSSOURCEDIR\RosBE-Logs"
$global:_ROSBE_OBJPATH = $null
$global:_ROSBE_OUTPATH = $null
Added: trunk/tools/RosBE/RosBE-Windows/Powershell/charch.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/charch.ps1 (added)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/charch.ps1 [iso-8859-1] Thu Nov 6 16:09:47
2008
@@ -1,0 +1,60 @@
+#
+# PROJECT: RosBE - ReactOS Build Environment for Windows
+# LICENSE: GNU General Public License v2. (see LICENSE.txt)
+# FILE: Root/charch.ps1
+# PURPOSE: Tool to change the current Arch to build ROS for in RosBE.
+# COPYRIGHT: Copyright 2008 Daniel Reimer <reimer.daniel(a)freenet.de>
+#
+
+$host.ui.RawUI.WindowTitle = "Change the Architecture to build for..."
+
+#
+# Parse the command line arguments.
+# ROSBE_ARCH: Default is i386, can be set to amd64, ppc or arm.
+#
+
+#
+# Refresh all needed Params by recalling the main Path setting CMD File.
+#
+function SYSPARAM {
+ IEX "& '$_ROSBE_BASEDIR\rosbe-gcc-env.ps1'"
+}
+if ($args[0] -eq $null) {
+ #
+ # If Parameters were set, parse them, if not, ask the user to add them.
+ #
+ $_1 = Read-Host "Please enter a Architecture you want to build ReactOS for:
"
+ if ($_1 -eq $null) {
+ "ERROR: You must enter a Architecture."
+ }
+} else {
+ $_1 = $args
+}
+if ($_1 -eq "i386") {
+ $_ROSBE_ARCH = $null
+ SYSPARAM
+}
+elseif ($_1 -eq "arm") {
+ $_ROSBE_ARCH = 1
+ SYSPARAM
+}
+elseif ($_1 -eq "ppc") {
+ $_ROSBE_ARCH = 2
+ SYSPARAM
+}
+elseif ($_1 -eq "amd64") {
+ $_ROSBE_ARCH = 3
+ SYSPARAM
+}
+elseif ($_1 -eq $null) {
+ "Unknown parameter specified. Try 'help [COMMAND]'."
+}
+
+if ($_ROSBE_VERSION -ne $null) {
+ $host.ui.RawUI.WindowTitle = "ReactOS Build Environment $_ROSBE_VERSION"
+}
+
+#
+# Unload all used Vars.
+#
+$_1 = $null
Propchange: trunk/tools/RosBE/RosBE-Windows/Powershell/charch.ps1
------------------------------------------------------------------------------
svn:eol-style = native
Added: 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 (added)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/chdefdir.ps1 [iso-8859-1] Thu Nov 6
16:09:47 2008
@@ -1,0 +1,46 @@
+#
+# PROJECT: RosBE - ReactOS Build Environment for Windows
+# LICENSE: GNU General Public License v2. (see LICENSE.txt)
+# FILE: Root/chdefdir.cmd
+# PURPOSE: Tool to change the current working ReactOS source directory
+# in RosBE.
+# COPYRIGHT: Copyright 2007 Daniel Reimer <reimer.daniel(a)freenet.de>
+# Peter Ward <dralnix(a)gmail.com>
+#
+#
+
+$host.ui.RawUI.WindowTitle = "Change the current working ReactOS source
directory..."
+
+#
+# Parse the command line arguments.
+#
+if ($args[0] -eq $null) {
+ #
+ # If Parameters were set, parse them, if not, ask the user to add them.
+ #
+ $_1 = Read-Host "Please enter a ReactOS source directory, or 'previous':
"
+ if ($_1 -eq $null) {
+ "ERROR: You must enter a ReactOS source directory, or
'previous'."
+ }
+} else {
+ $_1 = $args
+}
+if ($_1 -eq "previous") {
+ popd
+} else {
+ if (!(Test-Path "$_1\.")) {
+ "ERROR: The path specified doesn't seem to exist."
+
+ }
+ pushd "$_1"
+}
+$global:_ROSBE_ROSSOURCEDIR = "$pwd"
+
+if ($_ROSBE_VERSION -ne $null) {
+ $host.ui.RawUI.WindowTitle = "ReactOS Build Environment $_ROSBE_VERSION"
+}
+
+#
+# Unload all used Vars.
+#
+$_1 = $null
Propchange: trunk/tools/RosBE/RosBE-Windows/Powershell/chdefdir.ps1
------------------------------------------------------------------------------
svn:eol-style = native
Added: 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 (added)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/options.ps1 [iso-8859-1] Thu Nov 6
16:09:47 2008
@@ -1,0 +1,28 @@
+#
+# PROJECT: RosBE - ReactOS Build Environment for Windows
+# LICENSE: GNU General Public License v2. (see LICENSE.txt)
+# FILE: Root/options.cmd
+# PURPOSE: Starts options.exe and restarts RosBE afterwards.
+# COPYRIGHT: Copyright 2007 Daniel Reimer <reimer.daniel(a)freenet.de>
+#
+#
+
+$host.ui.RawUI.WindowTitle = "Options"
+
+#
+# Run options.exe
+#
+if (Test-Path "$_ROSBE_BASEDIR\Tools\options.exe") {
+ pushd "$_ROSBE_BASEDIR"
+ & "$_ROSBE_BASEDIR\Tools\options.exe"
+ popd
+ if (Test-Path "$ENV:APPDATA\RosBE\rosbe-options.cmd") {
+ & "$ENV:APPDATA\RosBE\rosbe-options.cmd"
+ }
+} else {
+ "ERROR: options.exe was not found."
+}
+
+if ($_ROSBE_VERSION -ne $null) {
+ $host.ui.RawUI.WindowTitle = "ReactOS Build Environment $_ROSBE_VERSION"
+}
Propchange: trunk/tools/RosBE/RosBE-Windows/Powershell/options.ps1
------------------------------------------------------------------------------
svn:eol-style = native
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] Thu Nov 6
16:09:47 2008
@@ -28,17 +28,17 @@
if ($_ROSBE_ARCH -eq 1) {
$ENV:ROS_ARCH = "arm"
$ENV:ROS_PREFIX = "arm-pc-mingw32"
- $_ROSBE_TARGET_MINGWPATH = "$_ROSBE_BASEDIR\4.4.0"
+ $_ROSBE_TARGET_MINGWPATH = "$_ROSBE_BASEDIR\arm"
}
if ($_ROSBE_ARCH -eq 2) {
$ENV:ROS_ARCH = "ppc"
$ENV:ROS_PREFIX = "ppc-pc-mingw32"
- $_ROSBE_TARGET_MINGWPATH = "$_ROSBE_BASEDIR\4.4.0"
+ $_ROSBE_TARGET_MINGWPATH = "$_ROSBE_BASEDIR\ppc"
}
if ($_ROSBE_ARCH -eq 3) {
$ENV:ROS_ARCH = "amd64"
$ENV:ROS_PREFIX = "x86_64-pc-mingw32"
- $_ROSBE_TARGET_MINGWPATH = "$_ROSBE_BASEDIR\4.4.0"
+ $_ROSBE_TARGET_MINGWPATH = "$_ROSBE_BASEDIR\x86_64"
}
#