From 0a9139ac07f60bbadef41f94b20e7790f2d4a644 Mon Sep 17 00:00:00 2001 From: Daniel Reimer Date: Wed, 30 Apr 2008 22:44:58 +0000 Subject: [PATCH] aliases now work globally. Just type "&make" and it runs build.ps1 Last Problem: build.ps1 does not even think about starting those biig lines to start the compiler + log generator + other stuff... svn path=/trunk/tools/RosBE/; revision=716 --- RosBE-Windows/Powershell/Build.ps1 | 6 ++--- RosBE-Windows/Powershell/RosBE.ps1 | 29 +++++++++++----------- RosBE-Windows/Powershell/rosbe-gcc-env.ps1 | 5 ++-- 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/RosBE-Windows/Powershell/Build.ps1 b/RosBE-Windows/Powershell/Build.ps1 index 000dd7e..38b27e6 100644 --- a/RosBE-Windows/Powershell/Build.ps1 +++ b/RosBE-Windows/Powershell/Build.ps1 @@ -1,11 +1,9 @@ # # PROJECT: RosBE - ReactOS Build Environment for Windows # LICENSE: GNU General Public License v2. (see LICENSE.txt) -# FILE: Root/Build.cmd +# FILE: Root/Build.ps1 # PURPOSE: Perform the build of ReactOS. -# COPYRIGHT: Copyright 2007 Daniel Reimer -# Colin Finck -# Peter Ward +# COPYRIGHT: Copyright 2008 Daniel Reimer # # diff --git a/RosBE-Windows/Powershell/RosBE.ps1 b/RosBE-Windows/Powershell/RosBE.ps1 index b858c46..0dc3b4d 100644 --- a/RosBE-Windows/Powershell/RosBE.ps1 +++ b/RosBE-Windows/Powershell/RosBE.ps1 @@ -4,8 +4,7 @@ # FILE: Root/RosBE.ps1 # PURPOSE: This script provides/sets up various build environments for # ReactOS. Currently it provides a GCC 4.1.3 build environment. -# COPYRIGHT: Copyright 2007 Daniel Reimer -# Peter Ward +# COPYRIGHT: Copyright 2008 Daniel Reimer # # @@ -60,42 +59,42 @@ function RosBE4 function LOADDOSKEYMACROS { if (Test-Path "$_ROSBE_BASEDIR\chdefdir.ps1") { -set-alias CHDEFDIR "& $_ROSBE_BASEDIR\chdefdir.ps1" +set-alias CHDEFDIR "$_ROSBE_BASEDIR\chdefdir.ps1" -scope Global } if (Test-Path "$_ROSBE_BASEDIR\chdefgcc.ps1") { -set-alias CHDEFGCC "& $_ROSBE_BASEDIR\chdefgcc.ps1" +set-alias CHDEFGCC "$_ROSBE_BASEDIR\chdefgcc.ps1" -scope Global } if (Test-Path "$_ROSBE_BASEDIR\charch.ps1") { -set-alias CHARCH "& $_ROSBE_BASEDIR\charch.ps1" +set-alias CHARCH "$_ROSBE_BASEDIR\charch.ps1" -scope Global } -set-alias CLEAN "& $_ROSBE_BASEDIR\Clean.ps1" +set-alias CLEAN "$_ROSBE_BASEDIR\Clean.ps1" -scope Global if (Test-Path "$_ROSBE_BASEDIR\Config.ps1") { -set-alias CONFIG "& $_ROSBE_BASEDIR\Config.ps1" +set-alias CONFIG "$_ROSBE_BASEDIR\Config.ps1" -scope Global } -set-alias HELP "& $_ROSBE_BASEDIR\Help.ps1" -set-alias MAKE "& $_ROSBE_BASEDIR\Build.ps1" -set-alias MAKEX "& $_ROSBE_BASEDIR\Build.ps1 multi" +set-alias HELP "$_ROSBE_BASEDIR\Help.ps1" -scope Global +set-alias MAKE "$_ROSBE_BASEDIR\Build.ps1" -scope Global +set-alias MAKEX "$_ROSBE_BASEDIR\Build.ps1 multi" -scope Global if (Test-Path "$_ROSBE_BASEDIR\reladdr2line.ps1") { -set-alias RADDR2LINE "& $_ROSBE_BASEDIR\reladdr2line.ps1" +set-alias RADDR2LINE "$_ROSBE_BASEDIR\reladdr2line.ps1" -scope Global } if (Test-Path "$_ROSBE_BASEDIR\scut.ps1") { -set-alias SCUT "& $_ROSBE_BASEDIR\scut.ps1" +set-alias SCUT "$_ROSBE_BASEDIR\scut.ps1" -scope Global } if (Test-Path "$_ROSBE_BASEDIR\sSVN.ps1") { -set-alias SSVN "& $_ROSBE_BASEDIR\sSVN.ps1" -set-alias SVN "& $_ROSBE_BASEDIR\Tools\svn.exe" +set-alias SSVN "$_ROSBE_BASEDIR\sSVN.ps1" -scope Global +set-alias SVN "$_ROSBE_BASEDIR\Tools\svn.exe" -scope Global } if (Test-Path "$_ROSBE_BASEDIR\options.ps1") { -set-alias OPTIONS "& $_ROSBE_BASEDIR\options.ps1" +set-alias OPTIONS "$_ROSBE_BASEDIR\options.ps1" -scope Global } } diff --git a/RosBE-Windows/Powershell/rosbe-gcc-env.ps1 b/RosBE-Windows/Powershell/rosbe-gcc-env.ps1 index c24744a..1769331 100644 --- a/RosBE-Windows/Powershell/rosbe-gcc-env.ps1 +++ b/RosBE-Windows/Powershell/rosbe-gcc-env.ps1 @@ -1,10 +1,9 @@ # # PROJECT: RosBE - ReactOS Build Environment for Windows # LICENSE: GNU General Public License v2. (see LICENSE.txt) -# FILE: Root/rosbe-gcc-env.cmd +# FILE: Root/rosbe-gcc-env.ps1 # PURPOSE: Set up the GCC 4.x.x build environment. -# COPYRIGHT: Copyright 2007 Daniel Reimer -# Peter Ward +# COPYRIGHT: Copyright 2008 Daniel Reimer # #