-
Notifications
You must be signed in to change notification settings - Fork 3
/
merlin.ps1
35 lines (30 loc) · 3.71 KB
/
merlin.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
param([string]$path = "C:\vsl\")
VsVars
set MERLIN_ROOT="$path\Merlin\Main"
set MERLIN_EXTERNAL="${env:MERLIN_ROOT}\..\External.LCA_RESTRICTED"
set RUBY18_BIN="${env:MERLIN_EXTERNAL}\Languages\Ruby\ruby-1.8.6p287\bin"
set RUBY18_EXE="${env:RUBY18_BIN}\ruby.exe"
set RUBY19_EXE="${env:MERLIN_EXTERNAL}\Languages\Ruby\1.9.1p0\bin\ruby.exe"
$alias = $env:MERLIN_ROOT + '\Scripts\bat\Alias.ps1'
if (test-path $alias) { . $alias }
. $scripts\append-path.ps1 "${env:RUBY18_BIN}"
. $scripts\append-path.ps1 "${env:MERLIN_ROOT}\External\Tools"
. $scripts\append-path.ps1 "${env:MERLIN_ROOT}\Scripts\Bat"
. $scripts\append-path.ps1 "${env:MERLIN_ROOT}\..\Snap\bin"
. $scripts\append-path.ps1 "${env:MERLIN_EXTERNAL}\Languages\IronRuby\mspec\mspec\bin"
. $scripts\append-path.ps1 "${env:MERLIN_ROOT}\Languages\Ruby\Scripts"
function global:dbin { cd $env:MERLIN_ROOT\Bin\Debug }
function global:rbin { cd $env:MERLIN_ROOT\Bin\Release }
if (Test-Path function:\rbt) { Remove-Item -Force function:\rbt }
function global:rbl { cd $env:MERLIN_ROOT\Languages\Ruby\IronRuby.Libraries}
function global:rbt { cd $env:MERLIN_ROOT\Languages\Ruby\Tests}
function global:rb { cd $env:MERLIN_ROOT\Languages\Ruby }
function global:script { cd $env:MERLIN_ROOT\Scripts\Bat }
function global:root { cd $env:MERLIN_ROOT }
function global:ext { cd $env:MERLIN_EXTERNAL}
function global:irb19 {cmd /C "${env:MERLIN_EXTERNAL}\Languages\Ruby\ruby-1.9.1p0\bin\irb.bat $args"}
function global:ruby19 {cmd /C "${env:MERLIN_EXTERNAL}\Languages\Ruby\ruby-1.9.1p0\bin\ruby.exe $args"}
function global:geninit {cmd /C "${env:MERLIN_ROOT}\Languages\Ruby\Libraries.LCA_RESTRICTED\GenerateInitializers.cmd"}
if (Test-path function:ruby) {Remove-Item -Force function:ruby}
if (Test-path function:irb) {Remove-Item -Force function:irb}
rb